mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.
This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -148,17 +148,17 @@ SCEVCouldNotCompute::SCEVCouldNotCompute() :
|
||||
SCEV(FoldingSetNodeID(), scCouldNotCompute) {}
|
||||
|
||||
bool SCEVCouldNotCompute::isLoopInvariant(const Loop *L) const {
|
||||
LLVM_UNREACHABLE("Attempt to use a SCEVCouldNotCompute object!");
|
||||
llvm_unreachable("Attempt to use a SCEVCouldNotCompute object!");
|
||||
return false;
|
||||
}
|
||||
|
||||
const Type *SCEVCouldNotCompute::getType() const {
|
||||
LLVM_UNREACHABLE("Attempt to use a SCEVCouldNotCompute object!");
|
||||
llvm_unreachable("Attempt to use a SCEVCouldNotCompute object!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool SCEVCouldNotCompute::hasComputableLoopEvolution(const Loop *L) const {
|
||||
LLVM_UNREACHABLE("Attempt to use a SCEVCouldNotCompute object!");
|
||||
llvm_unreachable("Attempt to use a SCEVCouldNotCompute object!");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@ SCEVCommutativeExpr::replaceSymbolicValuesWithConcrete(
|
||||
else if (isa<SCEVUMaxExpr>(this))
|
||||
return SE.getUMaxExpr(NewOps);
|
||||
else
|
||||
LLVM_UNREACHABLE("Unknown commutative expr!");
|
||||
llvm_unreachable("Unknown commutative expr!");
|
||||
}
|
||||
}
|
||||
return this;
|
||||
@@ -506,7 +506,7 @@ namespace {
|
||||
return operator()(LC->getOperand(), RC->getOperand());
|
||||
}
|
||||
|
||||
LLVM_UNREACHABLE("Unknown SCEV kind!");
|
||||
llvm_unreachable("Unknown SCEV kind!");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -3475,7 +3475,7 @@ GetAddressedElementFromGlobal(LLVMContext *Context, GlobalVariable *GV,
|
||||
if (Idx >= ATy->getNumElements()) return 0; // Bogus program
|
||||
Init = Context->getNullValue(ATy->getElementType());
|
||||
} else {
|
||||
LLVM_UNREACHABLE("Unknown constant aggregate type!");
|
||||
llvm_unreachable("Unknown constant aggregate type!");
|
||||
}
|
||||
return 0;
|
||||
} else {
|
||||
@@ -3885,7 +3885,7 @@ const SCEV *ScalarEvolution::getSCEVAtScope(const SCEV *V, const Loop *L) {
|
||||
return getSMaxExpr(NewOps);
|
||||
if (isa<SCEVUMaxExpr>(Comm))
|
||||
return getUMaxExpr(NewOps);
|
||||
LLVM_UNREACHABLE("Unknown commutative SCEV type!");
|
||||
llvm_unreachable("Unknown commutative SCEV type!");
|
||||
}
|
||||
}
|
||||
// If we got here, all operands are loop invariant.
|
||||
@@ -3936,7 +3936,7 @@ const SCEV *ScalarEvolution::getSCEVAtScope(const SCEV *V, const Loop *L) {
|
||||
return getTruncateExpr(Op, Cast->getType());
|
||||
}
|
||||
|
||||
LLVM_UNREACHABLE("Unknown SCEV type!");
|
||||
llvm_unreachable("Unknown SCEV type!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user