aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-08-09 16:04:40 +0000
committerSteve Naroff <snaroff@apple.com>2008-08-09 16:04:40 +0000
commit907747b3a67a41420ead8ef1fc5e6bd9dc9e0ad9 (patch)
tree3fa73dfdebe0e97de00b7d19d6f5c593870c3dad /lib/AST/Type.cpp
parenta4755c6ffab02586162170199d0c0594efaa273c (diff)
Fix Sema::MergeVarDecl() to better handle type compatibility. The previous code was trying to handle arrays specially (which didn't work for pointers to array). Removed local helper function areEquivalentArrayTypes(), replacing it's use with the more general ASTContext::typesAreCompatible() predicate.
Even though the test case this fixes is in "tentative-decls.c", this bug didn't have anything to do with our handling of tentative definitions (which is what I first expected). In any event, this is a tricky area of the spec. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
0 files changed, 0 insertions, 0 deletions