forked from OSchip/llvm-project
Add back implicitly dropped const.
(found due to incoming improvements to llvm::cast machinery that will error on this sort of mistake) llvm-svn: 175817
This commit is contained in:
parent
d6c8f2b6bf
commit
3cbec0f73d
|
@ -2272,7 +2272,7 @@ CFRefLeakReportVisitor::getEndPath(BugReporterContext &BRC,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (RV->getKind() == RefVal::ErrorGCLeakReturned) {
|
else if (RV->getKind() == RefVal::ErrorGCLeakReturned) {
|
||||||
ObjCMethodDecl &MD = cast<ObjCMethodDecl>(EndN->getCodeDecl());
|
const ObjCMethodDecl &MD = cast<ObjCMethodDecl>(EndN->getCodeDecl());
|
||||||
os << " and returned from method '" << MD.getSelector().getAsString()
|
os << " and returned from method '" << MD.getSelector().getAsString()
|
||||||
<< "' is potentially leaked when using garbage collection. Callers "
|
<< "' is potentially leaked when using garbage collection. Callers "
|
||||||
"of this method do not expect a returned object with a +1 retain "
|
"of this method do not expect a returned object with a +1 retain "
|
||||||
|
|
Loading…
Reference in New Issue