Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.414 -> 1.415
---
Log message:

Fix a typo which can break jumptables.

---
Diffs of the changes:  (+1 -1)

 LegalizeDAG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.414 
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.415
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.414 Mon Oct 30 02:00:44 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp       Mon Oct 30 20:31:00 2006
@@ -1279,7 +1279,7 @@
           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 {



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to