forked from OSchip/llvm-project
Simplify, and fix a possible crash (never happens however, because we don't ever
take this path with non-builtin floating point types). llvm-svn: 74303
This commit is contained in:
parent
e5ebf02e0e
commit
c7d0e6525d
|
@ -5014,16 +5014,13 @@ CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend(
|
|||
}
|
||||
}
|
||||
else if (!IsSuper && ResultType->isFloatingType()) {
|
||||
if (const BuiltinType *BT = ResultType->getAsBuiltinType()) {
|
||||
BuiltinType::Kind k = BT->getKind();
|
||||
if (k == BuiltinType::LongDouble) {
|
||||
Fn = ObjCTypes.getMessageSendFpretFixupFn();
|
||||
Name += "objc_msgSend_fpret_fixup";
|
||||
}
|
||||
else {
|
||||
Fn = ObjCTypes.getMessageSendFixupFn();
|
||||
Name += "objc_msgSend_fixup";
|
||||
}
|
||||
if (ResultType->isSpecificBuiltinType(BuiltinType::LongDouble)) {
|
||||
Fn = ObjCTypes.getMessageSendFpretFixupFn();
|
||||
Name += "objc_msgSend_fpret_fixup";
|
||||
}
|
||||
else {
|
||||
Fn = ObjCTypes.getMessageSendFixupFn();
|
||||
Name += "objc_msgSend_fixup";
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue