Clang inserts GetElementPtrInst so findAllocaForValue was not
able to find allocas.
PR27453
Paths
| Differential D22657
[ASAN] Fix detection of stack-use-after scope for char arrays. ClosedPublic Authored by vitalybuka on Jul 21 2016, 4:23 PM.
Details Summary Clang inserts GetElementPtrInst so findAllocaForValue was not PR27453
Diff Detail Event Timelinevitalybuka updated this object. vitalybuka retitled this revision from Fix detection of stack-use-after scope for char arrays. to [ASAN] Fix detection of stack-use-after scope for char arrays..Jul 21 2016, 4:27 PM Comment Actions This needs an IR-level test that shows that proper instrumentation appears on lifetime-after-gep allocas. Comment Actions
Done.
eugenis edited edge metadata. Comment ActionsLGTM
This revision is now accepted and ready to land.Jul 21 2016, 5:43 PM vitalybuka marked an inline comment as done. vitalybuka edited edge metadata. Comment Actionsupdated message Closed by commit rL276374: Fix detection of stack-use-after scope for char arrays. (authored by vitalybuka). · Explain WhyJul 21 2016, 6:03 PM This revision was automatically updated to reflect the committed changes. vitalybuka marked an inline comment as done.
Revision Contents
Diff 65001 lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/lifetime.ll
|
The message should probably say something about alloca or lifetime.