OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9292136
)
Fix invalid asserts, use llvm_unreachable instead.
author
Jakub Staszak
<kubastaszak@gmail.com>
Wed, 14 Nov 2012 21:03:40 +0000
(21:03 +0000)
committer
Jakub Staszak
<kubastaszak@gmail.com>
Wed, 14 Nov 2012 21:03:40 +0000
(21:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167976
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
index
3dd9bf5
..
1cea9fa
100644
(file)
--- 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 valu
e");
+
llvm_unreachable("Wrong Address Spac
e");
}
}
else if (!strcmp(Modifier, "sign")) {
@@
-649,10
+649,10
@@
void NVPTXAsmPrinter::printLdStCode(const MachineInstr *MI, int opNum,
O << ".v4";
}
else
-
assert("unknown m
odifier");
+
llvm_unreachable("Unknown M
odifier");
}
else
-
assert("unknown m
odifier");
+
llvm_unreachable("Empty M
odifier");
}
void NVPTXAsmPrinter::emitDeclaration (const Function *F, raw_ostream &O) {