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:
0a0ab13
)
This shouldn't be necessary
author
Andrew Lenharth
<andrewl@lenharth.org>
Tue, 11 Nov 2008 23:19:51 +0000
(23:19 +0000)
committer
Andrew Lenharth
<andrewl@lenharth.org>
Tue, 11 Nov 2008 23:19:51 +0000
(23:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59090
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Alpha/AlphaInstrInfo.td
patch
|
blob
|
history
diff --git
a/lib/Target/Alpha/AlphaInstrInfo.td
b/lib/Target/Alpha/AlphaInstrInfo.td
index 8e6df4acdb5541ff97cad386257008cdf1156ea1..c4e6edc2e10bcc23c85d3875616b2718b7600f08 100644
(file)
--- a/
lib/Target/Alpha/AlphaInstrInfo.td
+++ b/
lib/Target/Alpha/AlphaInstrInfo.td
@@
-93,7
+93,8
@@
def immSExt16int : PatLeaf<(imm), [{ //(int)imm fits in a 16 bit sign extended
}], SExt16>;
def zappat : PatFrag<(ops node:$LHS), (and node:$LHS, imm:$L), [{
- ConstantSDNode *RHS = cast<ConstantSDNode>(N->getOperand(1));
+ ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
+ if (!RHS) return 0;
uint64_t build = get_zapImm(N->getOperand(0), (uint64_t)RHS->getZExtValue());
return build != 0;
}]>;