-
-
Save fmayer/aea7cbb4700cfe2c9d932591ae1073c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | |
index f36ee3a0457d..696c913c9afe 100644 | |
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | |
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | |
@@ -1535,8 +1535,10 @@ bool HWAddressSanitizer::sanitizeFunction( | |
DVI->location_ops().end()); | |
for (Value *V : LocationOps) { | |
if (auto *AI = dyn_cast_or_null<AllocaInst>(V)) { | |
- if (auto *NewAI = AllocaToPaddedAllocaMap.lookup(AI)) | |
+ if (auto *NewAI = AllocaToPaddedAllocaMap.lookup(AI)) { | |
+ exit(1); | |
DVI->replaceVariableLocationOp(V, NewAI); | |
+ } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment