aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/SparsePropagation.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
commit239255d2a6f0c568450aff21c09a4eb91ad10bef (patch)
tree23cd3335d6ba95526e3977729e805de0b2cfc187 /llvm/lib/Analysis/SparsePropagation.cpp
parent059588a1ee2551d195eaed77edfb8f9c5f268d44 (diff)
downloadllvm-239255d2a6f0c568450aff21c09a4eb91ad10bef.zip
llvm-239255d2a6f0c568450aff21c09a4eb91ad10bef.tar.gz
llvm-239255d2a6f0c568450aff21c09a4eb91ad10bef.tar.bz2
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. llvm-svn: 54583
Diffstat (limited to 'llvm/lib/Analysis/SparsePropagation.cpp')
0 files changed, 0 insertions, 0 deletions