diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-30 22:43:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-30 22:43:50 +0000 |
commit | f263a23735bb8027035ce4920f7faa5c7d8eff1d (patch) | |
tree | 7d5fee91f354321c379d148c2abbd7799baf48b5 | |
parent | 4ea4dba8d90f460054831b12a5e9e993e9b66d49 (diff) | |
download | bcm5719-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
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
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; |