[cfe-commits] r125468 - /cfe/trunk/lib/Sema/SemaOverload.cpp
Fariborz Jahanian
fjahanian at apple.com
Sun Feb 13 12:11:43 PST 2011
Author: fjahanian
Date: Sun Feb 13 14:11:42 2011
New Revision: 125468
URL: http://llvm.org/viewvc/llvm-project?rev=125468&view=rev
Log:
Use hasSameType in one more, hopefully, last place.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=125468&r1=125467&r2=125468&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Sun Feb 13 14:11:42 2011
@@ -1826,8 +1826,8 @@
return false;
bool IncompatibleObjC = false;
- if (Context.getCanonicalType(FromFunctionType->getResultType())
- == Context.getCanonicalType(ToFunctionType->getResultType())) {
+ if (Context.hasSameType(FromFunctionType->getResultType(),
+ ToFunctionType->getResultType())) {
// Okay, the types match exactly. Nothing to do.
} else {
QualType RHS = FromFunctionType->getResultType();
More information about the cfe-commits
mailing list