diff options
author | Queen Dela Cruz <qdelacru@cisco.com> | 2021-07-07 14:00:31 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2021-07-07 14:00:31 -0400 |
commit | 3c5721d77275d2a7bdaeeadd0b1c3864f1166110 (patch) | |
tree | ad131c45646b84d057a648370872c93e0974bfbe /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp | |
parent | e81ba283131cf76ae62fa9b601a24d080578efaa (diff) | |
download | llvm-3c5721d77275d2a7bdaeeadd0b1c3864f1166110.zip llvm-3c5721d77275d2a7bdaeeadd0b1c3864f1166110.tar.gz llvm-3c5721d77275d2a7bdaeeadd0b1c3864f1166110.tar.bz2 |
Fix a failing assertion with -Wcast-align
When there is unknown type in a struct in code compiled with
-Wcast-align, the compiler crashes due to
clang::ASTContext::getASTRecordLayout() failing an assert.
Added check that the RecordDecl is valid before calling
getASTRecordLayout().
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions