aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
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
commitf52ab250ff92bc51a9ac9a8e19bd43b63a5f844f (patch)
tree411af99807d88728a0fa30bb9443b75d065ff8c9 /lib/Sema/SemaDecl.cpp
parent77c9647cae939104c6cb2b6a4dd8ca859d2e5770 (diff)
Start switching clients over from CT.getCanonicalType() to Context.getCanonicalType(CT) for PR2189.
While I'm at it, clean up a bit of maxIntegerType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 150478c1e7..9498fb2c9e 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/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.