[clang] 54f9ddd - [Analyzer] Remove warning caused by commit `rGe22ace8ba2b0`

Adam Balogh via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 9 06:44:38 PDT 2020


Author: Adam Balogh
Date: 2020-06-09T15:46:15+02:00
New Revision: 54f9ddd8064125c0343980433546709e7dbf4593

URL: https://github.com/llvm/llvm-project/commit/54f9ddd8064125c0343980433546709e7dbf4593
DIFF: https://github.com/llvm/llvm-project/commit/54f9ddd8064125c0343980433546709e7dbf4593.diff

LOG: [Analyzer] Remove warning caused by commit `rGe22ace8ba2b0`

Added: 
    

Modified: 
    clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp b/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp
index a329b37d2767..5750d5918db3 100644
--- a/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp
+++ b/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp
@@ -23,9 +23,6 @@ class TestReturnValueUnderConstructionChecker
   : public Checker<check::PostCall> {
 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())


        


More information about the cfe-commits mailing list