Skip to content

Commit

Permalink
[Continuations] Use report_fatal_error to fail in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Flakebi committed Oct 30, 2023
1 parent 0426339 commit 09ef5e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shared/continuations/lib/DXILCont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "llvm-dialects/Dialect/Builder.h"
#include "llvm-dialects/Dialect/Dialect.h"
#include "llvm/Passes/PassBuilder.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Transforms/Coroutines/CoroCleanup.h"
#include "llvm/Transforms/Coroutines/CoroEarly.h"
#include "llvm/Transforms/Coroutines/CoroElide.h"
Expand Down Expand Up @@ -539,9 +540,8 @@ Value *llvm::getDXILSystemData(IRBuilder<> &B, Value *SystemData,
if (!StructTy) {
LLVM_DEBUG(dbgs() << "System data struct: "; SystemDataTy->dump());
LLVM_DEBUG(dbgs() << "Wanted struct type: "; Ty->dump());
errs() << "Invalid system data struct: Did not contain the needed struct "
"type\n";
llvm_unreachable("");
report_fatal_error(
"Invalid system data struct: Did not contain the needed struct type");
}
SystemDataTy = StructTy->getElementType(0);
Indices.push_back(B.getInt32(0));
Expand Down

0 comments on commit 09ef5e5

Please sign in to comment.