aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorQueen Dela Cruz <qdelacru@cisco.com>2021-07-07 14:00:31 -0400
committerAaron Ballman <aaron@aaronballman.com>2021-07-07 14:00:31 -0400
commit3c5721d77275d2a7bdaeeadd0b1c3864f1166110 (patch)
treead131c45646b84d057a648370872c93e0974bfbe /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parente81ba283131cf76ae62fa9b601a24d080578efaa (diff)
downloadllvm-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