Skip to content

Commit 23ee462

Browse files
committed
Only print debugging if handled
1 parent 3cba7d7 commit 23ee462

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,14 +3048,15 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
30483048
}
30493049

30503050
bool handleUnknownIntrinsic(IntrinsicInst &I) {
3051-
bool success = handleUnknownIntrinsicUnlogged(I);
3052-
if (ClDumpStrictIntrinsics)
3053-
dumpInst(I);
3054-
3055-
LLVM_DEBUG(dbgs() << "UNKNOWN INTRINSIC HANDLED HEURISTICALLY: " << I
3056-
<< "\n");
3057-
3058-
return success;
3051+
if (handleUnknownIntrinsicUnlogged(I)) {
3052+
if (ClDumpStrictIntrinsics)
3053+
dumpInst(I);
3054+
3055+
LLVM_DEBUG(dbgs() << "UNKNOWN INTRINSIC HANDLED HEURISTICALLY: " << I
3056+
<< "\n");
3057+
return true;
3058+
} else
3059+
return false;
30593060
}
30603061

30613062
void handleInvariantGroup(IntrinsicInst &I) {

0 commit comments

Comments
 (0)