summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-30 22:43:50 +0000
committerChris Lattner <sabre@nondot.org>2006-01-30 22:43:50 +0000
commitf263a23735bb8027035ce4920f7faa5c7d8eff1d (patch)
tree7d5fee91f354321c379d148c2abbd7799baf48b5 /llvm/lib
parent4ea4dba8d90f460054831b12a5e9e993e9b66d49 (diff)
downloadbcm5719-llvm-f263a23735bb8027035ce4920f7faa5c7d8eff1d.tar.gz
bcm5719-llvm-f263a23735bb8027035ce4920f7faa5c7d8eff1d.zip
Fix a bug in my legalizer reworking that caused the X86 backend to not get
a chance to custom legalize setcc, which broke a bunch of C++ Codes. Testcase here: CodeGen/X86/2006-01-30-LongSetcc.ll llvm-svn: 25821
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 04fef370171..79037d3020f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1465,8 +1465,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
}
}
- switch (TLI.getOperationAction(ISD::SETCC,
- Node->getOperand(0).getValueType())) {
+ switch (TLI.getOperationAction(ISD::SETCC, Tmp1.getValueType())) {
default: assert(0 && "Cannot handle this action for SETCC yet!");
case TargetLowering::Custom:
isCustom = true;
OpenPOWER on IntegriCloud