We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b890c17 commit c4df57dCopy full SHA for c4df57d
llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -1462,8 +1462,13 @@ bool FastISel::selectIntrinsicCall(const IntrinsicInst *II) {
1462
llvm_unreachable("llvm.is.constant.* should have been lowered already");
1463
1464
case Intrinsic::allow_runtime_check:
1465
- case Intrinsic::allow_ubsan_check:
1466
- llvm_unreachable("llvm.*.check should have been lowered already");
+ case Intrinsic::allow_ubsan_check: {
+ Register ResultReg = getRegForValue(ConstantInt::getTrue(II->getType()));
1467
+ if (!ResultReg)
1468
+ return false;
1469
+ updateValueMap(II, ResultReg);
1470
+ return true;
1471
+ }
1472
1473
case Intrinsic::launder_invariant_group:
1474
case Intrinsic::strip_invariant_group:
0 commit comments