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:
8d3af5e
)
Avoid undesirable behavior when assert is not enabled.
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 15 Jun 2006 08:10:27 +0000
(08:10 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 15 Jun 2006 08:10:27 +0000
(08:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28793
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/Target/TargetInstrInfo.h
b/include/llvm/Target/TargetInstrInfo.h
index 6fb3274e8018d982a44d50627c924298c0a88adb..6151c439d9d9a469f18bf11893630cf0742848ce 100644
(file)
--- a/
include/llvm/Target/TargetInstrInfo.h
+++ b/
include/llvm/Target/TargetInstrInfo.h
@@
-149,9
+149,9
@@
public:
const TargetRegisterClass
*getInstrOperandRegClass(const TargetInstrDescriptor *II, unsigned Op) const {
if (Op >= II->numOperands) {
- if (
II->Flags & M_VARIABLE_OPS
)
-
return NULL
;
-
assert(false && "Invalid operand # of instruction")
;
+ if (
!(II->Flags & M_VARIABLE_OPS)
)
+
assert(false && "Invalid operand # of instruction")
;
+
return NULL
;
}
const TargetOperandInfo &toi = II->OpInfo[Op];
return (toi.Flags & M_LOOK_UP_PTR_REG_CLASS)