diff options
| author | Matt Beaumont-Gay <matthewbg@google.com> | 2013-06-25 22:19:15 +0000 |
|---|---|---|
| committer | Matt Beaumont-Gay <matthewbg@google.com> | 2013-06-25 22:19:15 +0000 |
| commit | 35779955b3b845f0d72d0b63bda482c5f64f21f0 (patch) | |
| tree | aa72271aeab9021b0db8e7eddc30a344a893a4ca /lldb/source/Commands/CommandObjectCommands.cpp | |
| parent | ba8f17ac1037d1c554f906801e0d1fa6b009f22c (diff) | |
| download | llvm-35779955b3b845f0d72d0b63bda482c5f64f21f0.zip llvm-35779955b3b845f0d72d0b63bda482c5f64f21f0.tar.gz llvm-35779955b3b845f0d72d0b63bda482c5f64f21f0.tar.bz2 | |
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.
llvm-svn: 184883
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions
