Depends on D117278
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
LGTM
A compiler-rt test for origin propagation would be great.
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
1742 | 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 | ||
---|---|---|
1742 | 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).