summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2013-06-25 22:19:15 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2013-06-25 22:19:15 +0000
commit147fab970c9877273e6185f0e276f376887c967f (patch)
treea041223d4abbf360cd3f3e64a0e8d67bf8fe5c69 /lib/CodeGen/CGExpr.cpp
parent87b12b2e92c1670e551d66938a4c0a055b18b03a (diff)
downloadclang-147fab970c9877273e6185f0e276f376887c967f.tar.gz
clang-147fab970c9877273e6185f0e276f376887c967f.tar.bz2
clang-147fab970c9877273e6185f0e276f376887c967f.tar.xz
Don't try to get the layout of an invalid decl in getDeclAlign.
When the decl that we're getting alignment for is a FieldDecl, and the field's parent record is invalid, skip the actual field alignment calculation (and return 1-byte alignment in the general case). Also, assert in in getASTRecordLayout that the decl is valid. This was inspired by PR16292; see also r184581 and r184751. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions