Pasto.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 1 Apr 2008 02:00:09 +0000 (02:00 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 1 Apr 2008 02:00:09 +0000 (02:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49014 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index a6d606eb212ce43ccb8e521d8cbbf76fb09d1fb4..7812187fa43406e5eb50bc82750f410d8fe1b75c 100644 (file)
@@ -5452,7 +5452,7 @@ ExpandIntToFP(bool isSigned, MVT::ValueType DestTy, SDOperand Source) {
   RTLIB::Libcall LC;
   if (SourceVT == MVT::i32) {
     if (DestTy == MVT::f32)
-      LC = isSigned ? RTLIB::SINTTOFP_I64_F32 : RTLIB::UINTTOFP_I64_F32;
+      LC = isSigned ? RTLIB::SINTTOFP_I32_F32 : RTLIB::UINTTOFP_I32_F32;
     else {
       assert(DestTy == MVT::f64 && "Unknown fp value type!");
       LC = isSigned ? RTLIB::SINTTOFP_I32_F64 : RTLIB::UINTTOFP_I32_F64;