From 0efd77eda73d5f9cccaeac825d04bdc19f713d60 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 13 Apr 2005 03:42:14 +0000 Subject: [PATCH] Make expansion of uint->fp cast assert out instead of infinitely recurse. llvm-svn: 21275 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 01c88e1a5742..1dceccaeccf5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1820,7 +1820,7 @@ ExpandIntToFP(bool isSigned, MVT::ValueType DestTy, SDOperand Source) { } 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!"); }