[clang] [compiler-rt] [llvm] [ASan] Add metadata to renamed instructions so ASan doesn't use the i… (PR #119387)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 16:00:13 PST 2025
================
@@ -137,6 +137,10 @@ llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(llvm::Type *Ty,
Alloca =
new llvm::AllocaInst(Ty, CGM.getDataLayout().getAllocaAddrSpace(),
ArraySize, Name, AllocaInsertPt->getIterator());
+ if (Alloca->getName() != Name.str() &&
----------------
efriedma-quic wrote:
Yes, something like that.
I don't think llvm-compile-time-tracker tracks compile time with asan enabled, so I can't see how this change could have any effect either way.
https://github.com/llvm/llvm-project/pull/119387
More information about the llvm-commits
mailing list