diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-07-26 00:53:29 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-07-26 00:53:29 +0000 |
commit | f24bd3bdba33297223f2dcbc3bcfae8b844a69e2 (patch) | |
tree | 5b60b3db937133c78fa8301492abd8e026196c34 /clang/lib/Lex/PPMacroExpansion.cpp | |
parent | a7d4822c7585a9d9d0435fcfcb6067370b9d00b3 (diff) | |
download | bcm5719-llvm-f24bd3bdba33297223f2dcbc3bcfae8b844a69e2.tar.gz bcm5719-llvm-f24bd3bdba33297223f2dcbc3bcfae8b844a69e2.zip |
Fix GNU ObjC ABI for a message returning a struct.
This allows the ObjFW runtime to correctly implement message forwarding
for messages which return a struct.
Patch by Jonathan Schleifer.
llvm-svn: 187174
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
-rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index 2a932392f2c..0a7f079df6f 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -918,6 +918,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { .Case("objc_nonfragile_abi", LangOpts.ObjCRuntime.isNonFragile()) .Case("objc_property_explicit_atomic", true) // Does clang support explicit "atomic" keyword? .Case("objc_weak_class", LangOpts.ObjCRuntime.hasWeakClassImport()) + .Case("objc_msg_lookup_stret", LangOpts.ObjCRuntime.getKind() == ObjCRuntime::ObjFW) .Case("ownership_holds", true) .Case("ownership_returns", true) .Case("ownership_takes", true) |