OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba52556
)
[SelectionDAG] Use isa to silence unused variable warning (NFC).
author
Florian Hahn
<florian.hahn@arm.com>
Sat, 21 Oct 2017 04:57:03 +0000
(
04:57
+0000)
committer
Florian Hahn
<florian.hahn@arm.com>
Sat, 21 Oct 2017 04:57:03 +0000
(
04:57
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316257
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index
dfb097a
..
63f9198
100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@
-2966,7
+2966,7
@@
unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
unsigned Tmp, Tmp2;
unsigned FirstAnswer = 1;
- if (
auto *C = dyn_cast
<ConstantSDNode>(Op)) {
+ if (
isa
<ConstantSDNode>(Op)) {
const APInt &Val = cast<ConstantSDNode>(Op)->getAPIntValue();
return Val.getNumSignBits();
}