summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-06 22:59:24 +0000
committerChris Lattner <sabre@nondot.org>2008-04-06 22:59:24 +0000
commit76a00cf3ffc6b713c4c4d701a8618b2c48d9ceda (patch)
treefa54efce647b2906f59a001233147f0746ae24b6 /clang/lib/Sema
parented0d0795ff580ab5ad6f83361caa459e468e4345 (diff)
downloadbcm5719-llvm-76a00cf3ffc6b713c4c4d701a8618b2c48d9ceda.tar.gz
bcm5719-llvm-76a00cf3ffc6b713c4c4d701a8618b2c48d9ceda.zip
Start switching clients over from CT.getCanonicalType() to Context.getCanonicalType(CT) for PR2189.
While I'm at it, clean up a bit of maxIntegerType. llvm-svn: 49292
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 150478c1e79..9498fb2c9e0 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -280,8 +280,8 @@ FunctionDecl *Sema::MergeFunctionDecl(FunctionDecl *New, Decl *OldD) {
MergeAttributes(New, Old);
- QualType OldQType = Old->getCanonicalType();
- QualType NewQType = New->getCanonicalType();
+ QualType OldQType = Old->getType().getCanonicalType();
+ QualType NewQType = New->getType().getCanonicalType();
// Function types need to be compatible, not identical. This handles
// duplicate function decls like "void f(int); void f(enum X);" properly.
OpenPOWER on IntegriCloud