Skip to content

Commit ac4be45

Browse files
committed
Revert "Temp assert to find tests with non-WillReturn intrinsics"
This reverts commit 69ce752.
1 parent 3d654ed commit ac4be45

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5231,9 +5231,6 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I,
52315231
bool HasChain = !F->doesNotAccessMemory();
52325232
bool OnlyLoad = HasChain && F->onlyReadsMemory() && F->willReturn();
52335233

5234-
bool PrevOnlyLoad = HasChain && F->onlyReadsMemory();
5235-
assert((!PrevOnlyLoad || F->willReturn()) && "Intrinsic treated as `OnlyLoad` despite no WillReturn");
5236-
52375234
// Build the operand list.
52385235
SmallVector<SDValue, 8> Ops;
52395236
if (HasChain) { // If this intrinsic has side-effects, chainify it.

0 commit comments

Comments
 (0)