Skip to content

Commit f588c72

Browse files
committed
Return ISD::DELETED_NODE in IntrinsicIDToISD()'s default case
1 parent 7c3ce2a commit f588c72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/TargetLoweringBase.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,8 +1847,9 @@ int TargetLoweringBase::IntrinsicIDToISD(Intrinsic::ID ID) const {
18471847
return ISD::FEXP;
18481848
case Intrinsic::exp2:
18491849
return ISD::FEXP2;
1850+
default:
1851+
return ISD::DELETED_NODE;
18501852
}
1851-
llvm_unreachable("Unsupported Intrinsic ID encountered!");
18521853
}
18531854

18541855
Value *

0 commit comments

Comments
 (0)