[Attributor] Use ConstantFoldLoadFromConst()
When determining the initial value of the object, use the constant folding API to load a given type at a given offset in the global initializer. This makes it work for cases where the load doesn't directly correspond to an aggregate member. Differential Revision: https://reviews.llvm.org/D135435
Loading
Please sign in to comment