[llvm-branch-commits] [cfe-branch] r73676 - /cfe/branches/Apple/Dib/lib/CodeGen/CGObjCMac.cpp
Daniel Dunbar
daniel at zuster.org
Wed Jun 17 21:34:18 PDT 2009
Author: ddunbar
Date: Wed Jun 17 23:34:16 2009
New Revision: 73676
URL: http://llvm.org/viewvc/llvm-project?rev=73676&view=rev
Log:
Another merge fix for 73158, this didn't show up on mainline because we don't generally emit message sends via this API anymore.
Modified:
cfe/branches/Apple/Dib/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/branches/Apple/Dib/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/CodeGen/CGObjCMac.cpp?rev=73676&r1=73675&r2=73676&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/branches/Apple/Dib/lib/CodeGen/CGObjCMac.cpp Wed Jun 17 23:34:16 2009
@@ -4936,16 +4936,13 @@
}
}
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 {
More information about the llvm-branch-commits
mailing list