[llvm] [Attributor] Compare an indirect call's callee in the program address space (PR #222097)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 11:54:31 PDT 2026


================
@@ -12495,10 +12495,16 @@ struct AAIndirectCallInfoCallSite : public AAIndirectCallInfo {
       return ChangeStatus::UNCHANGED;
 
     ChangeStatus Changed = ChangeStatus::UNCHANGED;
+    // The callees this is compared against below are functions, which live in
+    // the program address space. Normalize to that rather than to zero: they
----------------
efriedma-quic wrote:

Please make comments reflect the code as it is, rather than what is was.  Address-space zero is not at all relevant in the fixed code.

https://github.com/llvm/llvm-project/pull/222097


More information about the llvm-commits mailing list