Fix float cloning (#575)

This commit is contained in:
Peter Goodman
2022-01-10 00:33:46 -05:00
committed by GitHub
parent 8a3b602df5
commit 1ab4c34ba6
+1 -2
View File
@@ -966,8 +966,7 @@ static llvm::Constant *MoveConstantIntoModule(llvm::Constant *c,
moved_c = cf;
return cf;
} else {
auto ret =
llvm::ConstantFP::get(type, cf->getValueAPF().convertToDouble());
auto ret = llvm::ConstantFP::get(type, cf->getValueAPF());
moved_c = ret;
return ret;
}