projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6a8ba4
)
[X86] Use assert instead of if and llvm_unreachable. NFC
author
Craig Topper
<craig.topper@gmail.com>
Fri, 25 Dec 2015 17:07:27 +0000
(17:07 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Fri, 25 Dec 2015 17:07:27 +0000
(17:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256420
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86RegisterInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86RegisterInfo.cpp
b/lib/Target/X86/X86RegisterInfo.cpp
index 85ed5859a832dab31e41531a5f92855e3b4f9390..b0ea7367dd3674c629970956e78067d9b5ac1775 100644
(file)
--- a/
lib/Target/X86/X86RegisterInfo.cpp
+++ b/
lib/Target/X86/X86RegisterInfo.cpp
@@
-807,8
+807,7
@@
unsigned getX86SubSuperRegisterOrZero(unsigned Reg, MVT::SimpleValueType VT,
unsigned getX86SubSuperRegister(unsigned Reg, MVT::SimpleValueType VT,
bool High) {
unsigned Res = getX86SubSuperRegisterOrZero(Reg, VT, High);
- if (Res == 0)
- llvm_unreachable("Unexpected register or VT");
+ assert(Res != 0 && "Unexpected register or VT");
return Res;
}