mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
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:
parent
84c614d1ac
commit
2b7e0ade62
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user