1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

fix a miscompilation when passing a float through varargs

llvm-svn: 37297
This commit is contained in:
Chris Lattner 2007-05-23 01:17:04 +00:00
parent 31622dd4a9
commit 4cc07421ee

View File

@ -389,8 +389,7 @@ static const Type *getPromotedType(const Type *Ty) {
if (const IntegerType* ITy = dyn_cast<IntegerType>(Ty)) { if (const IntegerType* ITy = dyn_cast<IntegerType>(Ty)) {
if (ITy->getBitWidth() < 32) if (ITy->getBitWidth() < 32)
return Type::Int32Ty; return Type::Int32Ty;
} else if (Ty == Type::FloatTy) }
return Type::DoubleTy;
return Ty; return Ty;
} }