diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-13 03:42:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-13 03:42:14 +0000 |
commit | ffe284c65137ac1d8e4421550bdc9979ed80e9ee (patch) | |
tree | ca0529ea9b3e18b12960b90a58f1db71bd7955f8 /lib/CodeGen/SelectionDAG | |
parent | 5bf2686a1b0d1db83629087c29d7f8933f4f2dc2 (diff) | |
download | external_llvm-ffe284c65137ac1d8e4421550bdc9979ed80e9ee.zip external_llvm-ffe284c65137ac1d8e4421550bdc9979ed80e9ee.tar.gz external_llvm-ffe284c65137ac1d8e4421550bdc9979ed80e9ee.tar.bz2 |
Make expansion of uint->fp cast assert out instead of infinitely recurse.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 01c88e1..1dcecca 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/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!"); } |