================ ---------------- nikic wrote: I believe the correct fix is to change this `isa<GlobalValue>` to be `isa<Constant>` instead. It currently lets through constant expressions of globals, which is obviously not what was intended. https://github.com/llvm/llvm-project/pull/223456