Author: Adam Balogh Date: 2020-06-09T14:50:27+02:00 New Revision: e22ace8ba2b060e983d7cc2a76d00d6ef3816177
URL: https://github.com/llvm/llvm-project/commit/e22ace8ba2b060e983d7cc2a76d00d6ef3816177 DIFF: https://github.com/llvm/llvm-project/commit/e22ace8ba2b060e983d7cc2a76d00d6ef3816177.diff LOG: [Analyzer] Fix buildbot failure caused by commit `rG813734dad7e8b526c39806d1a88820b1f0706fb1` Added: Modified: clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp Removed: ################################################################################ diff --git a/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp b/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp index 7532d5491390..a329b37d2767 100644 --- a/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp +++ b/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp @@ -26,7 +26,9 @@ class TestReturnValueUnderConstructionChecker // We are checking the invocation of `returnC` which returns an object // by value. const IdentifierInfo *ID = Call.getCalleeIdentifier(); - if (ID->getName() != "returnC") + // Only calls with origin expression are checked. These are `returnC()` + // and C::C(). + if (!Call.getOriginExpr()) return; // Since `returnC` returns an object by value, the invocation results _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits