diff --git a/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp b/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp index a329b37d2767a4..5750d5918db32b 100644 --- a/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp +++ b/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp @@ -23,9 +23,6 @@ class TestReturnValueUnderConstructionChecker : public Checker { public: void checkPostCall(const CallEvent &Call, CheckerContext &C) const { - // We are checking the invocation of `returnC` which returns an object - // by value. - const IdentifierInfo *ID = Call.getCalleeIdentifier(); // Only calls with origin expression are checked. These are `returnC()` // and C::C(). if (!Call.getOriginExpr())