[PATCH] D41034: ASAN: Provide reliable debug info for local variables at -O0.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 09:57:12 PST 2017
eugenis accepted this revision.
eugenis added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:2913
+ LocalStackBaseAlloca = IRB.CreateAlloca(LocalStackBase->getType(), nullptr,
+ "asan_local_stack_base");
+ IRB.restoreIP(IP);
----------------
Could this be expressed in less lines of code by creating an AllocaInst directly, without saving and restoring IRBuilder state?
Repository:
rL LLVM
https://reviews.llvm.org/D41034
More information about the llvm-commits
mailing list