r251014 - Attempt to fix build bot test failures.

Gabor Horvath via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 22 06:23:18 PDT 2015


Author: xazax
Date: Thu Oct 22 08:23:18 2015
New Revision: 251014

URL: http://llvm.org/viewvc/llvm-project?rev=251014&view=rev
Log:
Attempt to fix build bot test failures.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp
    cfe/trunk/test/Analysis/inlining/path-notes.m

Modified: cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp?rev=251014&r1=251013&r2=251014&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp Thu Oct 22 08:23:18 2015
@@ -51,7 +51,7 @@ static std::string GetSignature(const Fu
   const auto *TargetT =
       llvm::dyn_cast_or_null<FunctionType>(Target->getType().getTypePtr());
 
-  if (!TargetT)
+  if (!TargetT || !isa<CXXMethodDecl>(Target))
     return Signature;
 
   if (TargetT->isConst())

Modified: cfe/trunk/test/Analysis/inlining/path-notes.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/inlining/path-notes.m?rev=251014&r1=251013&r2=251014&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/inlining/path-notes.m (original)
+++ cfe/trunk/test/Analysis/inlining/path-notes.m Thu Oct 22 08:23:18 2015
@@ -577,7 +577,7 @@ void testNullDereferenceInDispatch() {
 // CHECK-NEXT:    <key>type</key><string>Dereference of null pointer</string>
 // CHECK-NEXT:    <key>check_name</key><string>core.NullDereference</string>
 // CHECK-NEXT:    <!-- This hash is experimental and going to change! -->
-// CHECK-NEXT:    <key>issue_hash_content_of_line_in_context</key><string>ad3081ebf0d1e26cc4edb01c88faa1c1</string>
+// CHECK-NEXT:    <key>issue_hash_content_of_line_in_context</key><string>24947a6942bfa6030ab81e53a201d816</string>
 // CHECK-NEXT:   <key>issue_context_kind</key><string>function</string>
 // CHECK-NEXT:   <key>issue_context</key><string>testReturnZeroIfNil</string>
 // CHECK-NEXT:   <key>issue_hash_function_offset</key><string>1</string>




More information about the cfe-commits mailing list