diff options
Diffstat (limited to 'contrib/llvm-project/llvm/tools/llvm-sim/llvm-sim.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/tools/llvm-sim/llvm-sim.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm-project/llvm/tools/llvm-sim/llvm-sim.cpp b/contrib/llvm-project/llvm/tools/llvm-sim/llvm-sim.cpp index 26e370ff30f1..6879d73c4434 100644 --- a/contrib/llvm-project/llvm/tools/llvm-sim/llvm-sim.cpp +++ b/contrib/llvm-project/llvm/tools/llvm-sim/llvm-sim.cpp @@ -85,10 +85,9 @@ exportToFile(const StringRef FilePath, Optional<unsigned> End = getPositionInModule((*C.back()).Inst, LLVMInstNum); - assert(Start.hasValue() && + assert(Start && "Could not find instruction number for first instruction"); - assert(End.hasValue() && - "Could not find instruction number for last instruction"); + assert(End && "Could not find instruction number for last instruction"); J.object([&] { J.attribute("start", Start.getValue()); |