[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 12 20:42:30 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.87 -> 1.88
---
Log message:

Make expansion of uint->fp cast assert out instead of infinitely recurse.



---
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.87 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.88
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.87	Tue Apr 12 21:38:47 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Tue Apr 12 22:42:14 2005
@@ -1820,7 +1820,7 @@
   } else {
     // If this is unsigned, and not supported, first perform the conversion to
     // signed, then adjust the result if the sign bit is set.
-    SDOperand SignedConv = ExpandIntToFP(false, DestTy, Source);
+    SDOperand SignedConv = ExpandIntToFP(true, DestTy, Source);
 
     assert(0 && "Unsigned casts not supported yet!");
   }






More information about the llvm-commits mailing list