Skip to content

Commit b89658f

Browse files
committed
Attempt to fix build bot test failures.
llvm-svn: 251014
1 parent 37ab7fd commit b89658f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Core/IssueHash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static std::string GetSignature(const FunctionDecl *Target) {
5151
const auto *TargetT =
5252
llvm::dyn_cast_or_null<FunctionType>(Target->getType().getTypePtr());
5353

54-
if (!TargetT)
54+
if (!TargetT || !isa<CXXMethodDecl>(Target))
5555
return Signature;
5656

5757
if (TargetT->isConst())

clang/test/Analysis/inlining/path-notes.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ void testNullDereferenceInDispatch() {
577577
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
578578
// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string>
579579
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
580-
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>ad3081ebf0d1e26cc4edb01c88faa1c1</string>
580+
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>24947a6942bfa6030ab81e53a201d816</string>
581581
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
582582
// CHECK-NEXT: <key>issue_context</key><string>testReturnZeroIfNil</string>
583583
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>1</string>

0 commit comments

Comments
 (0)