Fix a typo which can break jumptables.

llvm-svn: 31305
This commit is contained in:
Evan Cheng 2006-10-31 02:31:00 +00:00
parent 2545fe6d93
commit e6d584765f
1 changed files with 1 additions and 1 deletions

View File

@ -1279,7 +1279,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
Reloc = DAG.getNode(ISD::GLOBAL_OFFSET_TABLE, PTy);
else
Reloc = Table;
Addr= (PTy != MVT::i32) ? DAG.getNode(ISD::SIGN_EXTEND, PTy, LD) : Addr;
Addr = (PTy != MVT::i32) ? DAG.getNode(ISD::SIGN_EXTEND, PTy, LD) : LD;
Addr = DAG.getNode(ISD::ADD, PTy, Addr, Reloc);
Result = DAG.getNode(ISD::BRIND, MVT::Other, LD.getValue(1), Addr);
} else {