// The next loop assumes that the locations are in the same order of the
// input arguments.
- assert(isSortedByValueNo(ArgLocs) &&
- "Argument Location list must be sorted before lowering");
+ if (!isSortedByValueNo(ArgLocs))
+ llvm_unreachable("Argument Location list must be sorted before lowering");
SDValue ArgValue;
for (unsigned I = 0, InsIndex = 0, E = ArgLocs.size(); I != E;
// The next loop assumes that the locations are in the same order of the
// input arguments.
- assert(isSortedByValueNo(ArgLocs) &&
- "Argument Location list must be sorted before lowering");
+ if (!isSortedByValueNo(ArgLocs))
+ llvm_unreachable("Argument Location list must be sorted before lowering");
// Walk the register/memloc assignments, inserting copies/loads. In the case
// of tail call optimization arguments are handle later.