Attempt to fix build bot test failures.

llvm-svn: 251014
This commit is contained in:
Gabor Horvath 2015-10-22 13:23:18 +00:00
parent 37ab7fda4c
commit b89658f649
2 changed files with 2 additions and 2 deletions

View 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())

View 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>