diff options
author | Andrew Lenharth <alenhar2@cs.uiuc.edu> | 2008-11-11 23:19:51 +0000 |
---|---|---|
committer | Andrew Lenharth <alenhar2@cs.uiuc.edu> | 2008-11-11 23:19:51 +0000 |
commit | 01ade48a19ed40568c484722580c862ed095a74d (patch) | |
tree | 84ebc0aa5184473660774e82f685bf9d6e246c52 /lib | |
parent | 828ccdc0ffc967ba75d96e1f3c55230047c5a13c (diff) | |
download | external_llvm-01ade48a19ed40568c484722580c862ed095a74d.zip external_llvm-01ade48a19ed40568c484722580c862ed095a74d.tar.gz external_llvm-01ade48a19ed40568c484722580c862ed095a74d.tar.bz2 |
This shouldn't be necessary
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Alpha/AlphaInstrInfo.td | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaInstrInfo.td b/lib/Target/Alpha/AlphaInstrInfo.td index 8e6df4a..c4e6edc 100644 --- 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; }]>; |