summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-08-31 17:20:07 +0000
committerSteve Naroff <snaroff@apple.com>2007-08-31 17:20:07 +0000
commit096dd942cfb57f613dd41aa6114e6d076cd24212 (patch)
tree1a45cc829f59a9764dc0934ef2a598055c5aa689 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent527ec81d8be914971edcf5142679099a869c97af (diff)
Removed Sema::VerifyConstantArrayType(). With the new Array/ConstantArray/VariableArray nodes, this
routine was causing more trouble than it was worth. Anders/Chris noticed that it could return an error code without emiting a diagnostic (which results in an silent invalid decl, which should *never* happen). In addition, this routine didn't work well for typedefs and field decls. Lastly, it didn't consider that initializers aren't in place yet. Added Type::getAsConstantArrayType(), Type::getAsVariableArrayType(), Type::getAsVariablyModifiedType(), and Type::isVariablyModifiedType(); Modified Sema::ParseDeclarator() and Sema::ParseField() to use the new predicates. Also added a FIXME for the initializer omission. Also added a missing test for "static" @ file scope. llvm-svn: 41647
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions