projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0366cd2
)
Silence unused warning in non-assert builds.
author
Daniel Jasper
<djasper@google.com>
Thu, 30 Apr 2015 09:01:21 +0000
(09:01 +0000)
committer
Daniel Jasper
<djasper@google.com>
Thu, 30 Apr 2015 09:01:21 +0000
(09:01 +0000)
llvm-svn: 236213
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index
5bbe18e
..
ca1a30c
100644
(file)
--- a/
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@
-1344,8
+1344,9
@@
bool X86DAGToDAGISel::SelectVectorAddr(SDNode *Parent, SDValue N, SDValue &Base,
Scale = getI8Imm(ScalarSize/8, DL);
// If Base is 0, the whole address is in index and the Scale is 1
- if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Base)) {
- assert(C->isNullValue() && "Unexpected base in gather/scatter");
+ if (isa<ConstantSDNode>(Base)) {
+ assert(dyn_cast<ConstantSDNode>(Base)->isNullValue() &&
+ "Unexpected base in gather/scatter");
Scale = getI8Imm(1, DL);
Base = CurDAG->getRegister(0, MVT::i32);
}