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:
parent
31622dd4a9
commit
4cc07421ee
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user