================
@@ -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:

Oh, we have some code that specifically messes with the default when asan is 
enabled. 
https://github.com/llvm/llvm-project/blob/3caa68a021c2f795de3df7f6ad7953556e825fab/clang/lib/Frontend/CompilerInvocation.cpp#L4973

If we have to support metadata anyway, I'd prefer to use the metadata 
unconditionally, instead of messing with LLVM IR instruction names.

https://github.com/llvm/llvm-project/pull/119387
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to