MaybeAlignment asserts that the passed in value is == 0 or a power of 2.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16272
Paths
| Differential D65858
[DataLayout] Check StackNatural and FunctionPtr alignments. ClosedPublic Authored by fhahn on Aug 7 2019, 4:30 AM.
Details Summary MaybeAlignment asserts that the passed in value is == 0 or a power of 2. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16272
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 7 2019, 4:57 AM Closed by commit rL368191: [DataLayout] Check StackNatural and FunctionPtr alignments. (authored by fhahn). · Explain WhyAug 7 2019, 10:20 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 213941 llvm/trunk/lib/IR/DataLayout.cpp
llvm/trunk/test/Assembler/datalayout-invalid-function-ptr-alignment.ll
llvm/trunk/test/Assembler/datalayout-invalid-stack-natural-alignment.ll
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||