]> granicus.if.org Git - clang/commit
In x86_64, when calling an Objective-C method that returns a _Complex long double...
authorAnders Carlsson <andersca@mac.com>
Mon, 31 Oct 2011 16:27:11 +0000 (16:27 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 31 Oct 2011 16:27:11 +0000 (16:27 +0000)
commiteea64802558cc398571938b1f28cda1d4fa79ec3
treecff7c15350ed90fd8824ec94b26d93678d9da975
parentf453cb9f677e16c00b358ec91eccf5f003765dc6
In x86_64, when calling an Objective-C method that returns a _Complex long double, make sure to use the objc_msgSend_fp2ret function which ensures that the return value will be {0, 0} if the receiver is nil.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143350 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
include/clang/Basic/TargetInfo.h
lib/Basic/TargetInfo.cpp
lib/Basic/Targets.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenObjC/fp2ret.m [new file with mode: 0644]