diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-26 22:17:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-26 22:17:49 +0000 |
commit | 574dee6cac605ad8995d8d40b8e69872bf97acd2 (patch) | |
tree | 485364ea2331066ecced6c8663d43ea96cf778f5 /clang/lib/Sema/Sema.cpp | |
parent | 6fc6614c0d98565c6a8315d7414983d894ab04e7 (diff) | |
download | bcm5719-llvm-574dee6cac605ad8995d8d40b8e69872bf97acd2.tar.gz bcm5719-llvm-574dee6cac605ad8995d8d40b8e69872bf97acd2.zip |
change more instances of QualType::getCanonicalType to call
ASTContext::getCanonicalType instead (PR2189)
llvm-svn: 54105
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index e2986a87a54..bf9f7a0bb3f 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -110,7 +110,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer) /// ImpCastExprToType - If Expr is not of type 'Type', insert an implicit cast. /// If there is already an implicit cast, merge into the existing one. void Sema::ImpCastExprToType(Expr *&Expr, QualType Type) { - if (Expr->getType().getCanonicalType() == Type.getCanonicalType()) return; + if (Context.getCanonicalType(Expr->getType()) == + Context.getCanonicalType(Type)) return; if (ImplicitCastExpr *ImpCast = dyn_cast<ImplicitCastExpr>(Expr)) ImpCast->setType(Type); |