Skip to content

Commit ff789ef

Browse files
committed
[ctxprof] Instrument direct calls to other things than Functions
1 parent 7ced328 commit ff789ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/IR/IntrinsicInst.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ class InstrProfCallsite : public InstrProfCntrInstBase {
15361536
static bool canInstrumentCallsite(const CallBase &CB) {
15371537
return !CB.isInlineAsm() &&
15381538
(CB.isIndirectCall() ||
1539-
(CB.getCalledFunction() && !CB.getCalledFunction()->isIntrinsic()));
1539+
(CB.getIntrinsicID() == Intrinsic::not_intrinsic));
15401540
}
15411541
LLVM_ABI Value *getCallee() const;
15421542
LLVM_ABI void setCallee(Value *Callee);

0 commit comments

Comments
 (0)