When splitting module with preserving locals, we currently do not handle case of global alias being separated with its aliasee.
|94 ↗||(On Diff #45996)|
An aliasee can be something other than a GlobalValue (for example, it could be a ConstantInt or a GEP ConstantExpr). I think what you want here is getBaseObject.
Can this be landed now...?
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
LGTM after dealing with comment.
|24 ↗||(On Diff #46052)|
This isn't quite what I meant. I meant e.g.
@g1Alias = internal alias i8, bitcast (i32* @g1 to i8*) @constAlias = internal alias i8, inttoptr (i64 42 to i8*)