summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-08-23 01:35:51 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-08-23 01:35:51 +0000
commit56381b8502692bb4e6f6cf9b2f71e33895984ba0 (patch)
tree50154a6c6a300a0941ef574c26e516f9172ba023 /clang/lib/Sema/SemaDecl.cpp
parent2a3ffb5d9735e8bd561d1bf4f38fcada52095c82 (diff)
downloadbcm5719-llvm-56381b8502692bb4e6f6cf9b2f71e33895984ba0.tar.gz
bcm5719-llvm-56381b8502692bb4e6f6cf9b2f71e33895984ba0.zip
Fix an incorrect note.
For the test case added to function-redecl.cpp, we were previously complaining about a mismatch in the parameter types, since the definition used the typedef'd type. llvm-svn: 138318
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index e45e7dafc62..62032e8b65c 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2924,7 +2924,7 @@ static bool isNearlyMatchingFunction(ASTContext &Context,
QualType DefParamTy = Definition->getParamDecl(Idx)->getType();
// The parameter types are identical
- if (DefParamTy == DeclParamTy)
+ if (Context.hasSameType(DefParamTy, DeclParamTy))
continue;
QualType DeclParamBaseTy = getCoreType(DeclParamTy);
OpenPOWER on IntegriCloud