summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Analysis/CheckObjCInstMethSignature.cpp')
-rw-r--r--clang/lib/Analysis/CheckObjCInstMethSignature.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Analysis/CheckObjCInstMethSignature.cpp b/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
index 00dbe9f2b26..2d100793c21 100644
--- a/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
+++ b/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
@@ -49,16 +49,16 @@ static void CompareReturnTypes(ObjCMethodDecl* MethDerived,
std::ostringstream os;
os << "The Objective-C class '"
- << MethDerived->getClassInterface()->getName()
+ << MethDerived->getClassInterface()->getNameAsString()
<< "', which is derived from class '"
- << MethAncestor->getClassInterface()->getName()
+ << MethAncestor->getClassInterface()->getNameAsString()
<< "', defines the instance method '"
<< MethDerived->getSelector().getAsString()
<< "' whose return type is '"
<< ResDerived.getAsString()
<< "'. A method with the same name (same selector) is also defined in "
"class '"
- << MethAncestor->getClassInterface()->getName()
+ << MethAncestor->getClassInterface()->getNameAsString()
<< "' and has a return type of '"
<< ResAncestor.getAsString()
<< "'. These two types are incompatible, and may result in undefined "
OpenPOWER on IntegriCloud