aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-01-01 15:52:00 +0000
committerDuncan Sands <baldrick@free.fr>2009-01-01 15:52:00 +0000
commit4a36127089bb2f78811d3f5a43c76b3d6f24f213 (patch)
tree1898f427b35c6795171701138e08762cd3aff3c1 /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent268d2da796169d5ad9ea513cd16d34b5f292fabe (diff)
downloadexternal_llvm-4a36127089bb2f78811d3f5a43c76b3d6f24f213.zip
external_llvm-4a36127089bb2f78811d3f5a43c76b3d6f24f213.tar.gz
external_llvm-4a36127089bb2f78811d3f5a43c76b3d6f24f213.tar.bz2
Fix PR3274: when promoting the condition of a BRCOND node,
promote from i1 all the way up to the canonical SetCC type. In order to discover an appropriate type to use, pass MVT::Other to getSetCCResultType. In order to be able to do this, change getSetCCResultType to take a type as an argument, not a value (this is also more logical). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index f2800bf..6fcecc8 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -607,7 +607,7 @@ const char *TargetLowering::getTargetNodeName(unsigned Opcode) const {
}
-MVT TargetLowering::getSetCCResultType(const SDValue &) const {
+MVT TargetLowering::getSetCCResultType(MVT VT) const {
return getValueType(TD->getIntPtrType());
}