[PATCH] D20761: [asan] Rename kAsanOptionDetectUAR into kAsanOptionDetectUseAfterReturn
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 17:10:10 PDT 2016
vitalybuka created this revision.
vitalybuka added reviewers: kcc, eugenis, aizatsky.
vitalybuka added a subscriber: llvm-commits.
PR27453
http://reviews.llvm.org/D20761
Files:
lib/Transforms/Instrumentation/AddressSanitizer.cpp
Index: lib/Transforms/Instrumentation/AddressSanitizer.cpp
===================================================================
--- lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -116,7 +116,7 @@
static const char *const kAsanGlobalsRegisteredFlagName =
"__asan_globals_registered";
-static const char *const kAsanOptionDetectUAR =
+static const char *const kAsanOptionDetectUseAfterReturn =
"__asan_option_detect_stack_use_after_return";
static const char *const kAsanAllocaPoison = "__asan_alloca_poison";
@@ -2060,10 +2060,10 @@
// ? __asan_stack_malloc_N(LocalStackSize)
// : nullptr;
// void *LocalStackBase = (FakeStack) ? FakeStack : alloca(LocalStackSize);
- Constant *OptionDetectUAR = F.getParent()->getOrInsertGlobal(
- kAsanOptionDetectUAR, IRB.getInt32Ty());
+ Constant *OptionDetectUseAfterReturn = F.getParent()->getOrInsertGlobal(
+ kAsanOptionDetectUseAfterReturn, IRB.getInt32Ty());
Value *UARIsEnabled =
- IRB.CreateICmpNE(IRB.CreateLoad(OptionDetectUAR),
+ IRB.CreateICmpNE(IRB.CreateLoad(OptionDetectUseAfterReturn),
Constant::getNullValue(IRB.getInt32Ty()));
Instruction *Term =
SplitBlockAndInsertIfThen(UARIsEnabled, InsBefore, false);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20761.58867.patch
Type: text/x-patch
Size: 1341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160528/91681295/attachment.bin>
More information about the llvm-commits
mailing list