Skip to content

Instantly share code, notes, and snippets.

@fmayer
Created February 15, 2022 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmayer/aea7cbb4700cfe2c9d932591ae1073c3 to your computer and use it in GitHub Desktop.
Save fmayer/aea7cbb4700cfe2c9d932591ae1073c3 to your computer and use it in GitHub Desktop.
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