diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2012-11-14 21:03:40 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2012-11-14 21:03:40 +0000 |
commit | 7454fc2e87ef5638f3644b86a4350a44513e5185 (patch) | |
tree | 0e20da4028f97babf977cd3e14a9140046a9e160 | |
parent | 9292136787725acbfd2c644ae8705610e45d548e (diff) |
Fix invalid asserts, use llvm_unreachable instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167976 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp index 3dd9bf5613..1cea9fac35 100644 --- a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp +++ b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp @@ -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) { |