]> granicus.if.org Git - clang/commitdiff
Attempt to fix build bot test failures.
authorGabor Horvath <xazax.hun@gmail.com>
Thu, 22 Oct 2015 13:23:18 +0000 (13:23 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Thu, 22 Oct 2015 13:23:18 +0000 (13:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251014 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/IssueHash.cpp
test/Analysis/inlining/path-notes.m

index bfb748624367f5d96fefe7bbee2b096fe13c5acf..6321e4b28ff5eb31629c4a1506c66134d23c9ec5 100644 (file)
@@ -51,7 +51,7 @@ static std::string GetSignature(const FunctionDecl *Target) {
   const auto *TargetT =
       llvm::dyn_cast_or_null<FunctionType>(Target->getType().getTypePtr());
 
-  if (!TargetT)
+  if (!TargetT || !isa<CXXMethodDecl>(Target))
     return Signature;
 
   if (TargetT->isConst())
index 3dfe8dba261bc9eaab374afbfb14b399e8e9a1b1..492b44c9879c43526212a9f31212ceb68419446d 100644 (file)
@@ -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>