diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-29 07:47:42 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-29 07:47:42 +0000 |
commit | 5751838965eefa1c08e4fc545498a3ee45cd9611 (patch) | |
tree | aa8a83664fb52151a5b1eade170d672a39efb171 /lib/Serialization/ASTWriter.cpp | |
parent | 2cc702e52127512a67cbcbb3af6d73fb06d8b6bf (diff) |
Don't assume that the AST methods will only be invoked on C++ types.
Teaches isLiteralType and isTrivialType to behave plausibly and most
importantly not crash on normal RecordDecls.
Sadly I have no real way to test this. I stumbled onto it by
mis-implementing a warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriter.cpp')
0 files changed, 0 insertions, 0 deletions