fix a miscompilation when passing a float through varargs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-05-23 01:17:04 +00:00
parent 84c614d1ac
commit 2b7e0ade62

View File

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