commit | 5751838965eefa1c08e4fc545498a3ee45cd9611 | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Fri Apr 29 07:47:42 2011 +0000 |
committer | Chandler Carruth <chandlerc@gmail.com> | Fri Apr 29 07:47:42 2011 +0000 |
tree | aa8a83664fb52151a5b1eade170d672a39efb171 | |
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