diff options
Diffstat (limited to 'clang/lib/Analysis/NSErrorChecker.cpp')
-rw-r--r-- | clang/lib/Analysis/NSErrorChecker.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Analysis/NSErrorChecker.cpp b/clang/lib/Analysis/NSErrorChecker.cpp index c5c405e5176..e3cf57fd0c1 100644 --- a/clang/lib/Analysis/NSErrorChecker.cpp +++ b/clang/lib/Analysis/NSErrorChecker.cpp @@ -113,13 +113,10 @@ void NSErrorChecker::EmitRetTyWarning(BugReporter& BR, const Decl& CodeDecl) { os << " should have a non-void return value to indicate whether or not an " "error occurred"; - // FIXME: Remove when we migrate EmitBasicReport to StringRef. - std::string cat = getCategory().str(); - BR.EmitBasicReport(isNSErrorWarning ? "Bad return type when passing NSError**" : "Bad return type when passing CFError*", - cat.c_str(), os.str().c_str(), + getCategory(), os.str(), CodeDecl.getLocation()); } |