The AllocaInst class now got two methods for calculating the
allocation size for the alloca (in bits and in bytes).
This include minor refactoring in SafeStack, AddressSanitizer
and HWAddressSanitizer to use those methods.
Paths
| Differential D48593
Reuse code for calculating allocation size for alloca AbandonedPublic Authored by bjope on Jun 26 2018, 7:11 AM.
Details
Summary The AllocaInst class now got two methods for calculating the This include minor refactoring in SafeStack, AddressSanitizer
Diff Detail
Event Timeline
Comment Actions This was an old idea that I never moved forward with. And I think the related code has been refactored since this review was created, so I'll just abandon the review. Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 12 2023, 2:39 AM
Revision Contents
Diff 152884 include/llvm/IR/Instructions.h
lib/CodeGen/SafeStack.cpp
lib/IR/Instructions.cpp
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
|
This method is used like this:
So I am afraid this assert might blow (the old assert was guarded by AI.isArrayAllocation()).