Skip to content

Commit 7b4cb9d

Browse files
address comments
1 parent c494a9d commit 7b4cb9d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mlir/lib/Transforms/Utils/DialectConversion.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,9 +1227,8 @@ void ConversionPatternRewriterImpl::undoRewrites(unsigned numRewritesToKeep,
12271227
if (!config.allowPatternRollback &&
12281228
!isa<UnresolvedMaterializationRewrite>(rewrite)) {
12291229
// Unresolved materializations can always be rolled back (erased).
1230-
std::string errorMessage = "pattern '" + std::string(patternName) +
1231-
"' rollback of IR modifications requested";
1232-
llvm_unreachable(errorMessage.c_str());
1230+
llvm::report_fatal_error("pattern '" + std::string(patternName) +
1231+
"' rollback of IR modifications requested");
12331232
}
12341233
rewrite->rollback();
12351234
}

0 commit comments

Comments
 (0)