diff options
| author | John McCall <rjmccall@apple.com> | 2010-03-12 23:14:13 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-03-12 23:14:13 +0000 |
| commit | 44c064be730e44c5994ddde4e312dcd628438af0 (patch) | |
| tree | 60320510a04841bf30b3909e23234a5a707adf78 /clang/lib/AST/ASTContext.cpp | |
| parent | f6442f80cbb700877631534fe6eb0d69e2839eec (diff) | |
| download | bcm5719-llvm-44c064be730e44c5994ddde4e312dcd628438af0.tar.gz bcm5719-llvm-44c064be730e44c5994ddde4e312dcd628438af0.zip | |
Check compatibility of vector types using their canonicalizations.
Fixes an assertion arising C overload analysis, but really I can't imagine
that this wouldn't cause a thousand other uncaught failures.
Fixes PR6600.
llvm-svn: 98400
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index ea121165fc2..c64f97a97f1 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -4736,7 +4736,8 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS) { return QualType(); case Type::Vector: // FIXME: The merged type should be an ExtVector! - if (areCompatVectorTypes(LHS->getAs<VectorType>(), RHS->getAs<VectorType>())) + if (areCompatVectorTypes(LHSCan->getAs<VectorType>(), + RHSCan->getAs<VectorType>())) return LHS; return QualType(); case Type::ObjCInterface: { |

