1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Fix invalid asserts, use llvm_unreachable instead.

llvm-svn: 167976
This commit is contained in:
Jakub Staszak 2012-11-14 21:03:40 +00:00
parent e40f4623cd
commit a24ecce5f1

View File

@ -631,7 +631,7 @@ void NVPTXAsmPrinter::printLdStCode(const MachineInstr *MI, int opNum,
O << ".global";
break;
default:
assert("wrong value");
llvm_unreachable("Wrong Address Space");
}
}
else if (!strcmp(Modifier, "sign")) {
@ -649,10 +649,10 @@ void NVPTXAsmPrinter::printLdStCode(const MachineInstr *MI, int opNum,
O << ".v4";
}
else
assert("unknown modifier");
llvm_unreachable("Unknown Modifier");
}
else
assert("unknown modifier");
llvm_unreachable("Empty Modifier");
}
void NVPTXAsmPrinter::emitDeclaration (const Function *F, raw_ostream &O) {