Skip to content

Commit d41836b

Browse files
committed
Address comment
1 parent f1c49e7 commit d41836b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4432,6 +4432,8 @@ bool MemProfContextDisambiguation::applyImport(Module &M) {
44324432
continue;
44334433
for (auto &BB : F) {
44344434
for (auto &I : BB) {
4435+
if (!isa<CallBase>(I))
4436+
continue;
44354437
I.setMetadata(LLVMContext::MD_memprof, nullptr);
44364438
I.setMetadata(LLVMContext::MD_callsite, nullptr);
44374439
}

0 commit comments

Comments
 (0)