[PATCH] D41034: ASAN: Provide reliable debug info for local variables at -O0.

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 12:44:09 PST 2017


aprantl added inline comments.


================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:2913
+    LocalStackBaseAlloca = IRB.CreateAlloca(LocalStackBase->getType(), nullptr,
+                                            "asan_local_stack_base");
+    IRB.restoreIP(IP);
----------------
eugenis wrote:
> Could this be expressed in less lines of code by creating an AllocaInst directly, without saving and restoring IRBuilder state?
> 
Done.


Repository:
  rL LLVM

https://reviews.llvm.org/D41034





More information about the llvm-commits mailing list