Depends on D117278
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM
A compiler-rt test for origin propagation would be great.
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
1741 | This can get weird if the byval pointer is less than 4 byte aligned, but the alternatives are not pretty, either. Also, you can bump the alignment std::max(CopyAlign, kMinOriginAlignment). |
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
1741 | Not sure if OriginPtr can be aligned higher then kMinOriginAlignment, as origin_tls base is 4 bytes aligned. Also please notice the I changed copy size. |
This can get weird if the byval pointer is less than 4 byte aligned, but the alternatives are not pretty, either.
Also, you can bump the alignment std::max(CopyAlign, kMinOriginAlignment).