diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2012-09-06 16:44:16 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2012-09-06 16:44:16 +0000 |
commit | 2d234d73f687428c89f8a99af94f123012f05551 (patch) | |
tree | 54a33471e620ac4d8558e9043bec5bec07f0ae7a /lib/Rewrite/Frontend/RewriteModernObjC.cpp | |
parent | 2d40d9e3bd6638399260332d8c7a98ac715f7b0d (diff) |
Fixing the return type information for objc_sync_enter and objc_sync_exit. Patch thanks to Joe Ranieri!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/Frontend/RewriteModernObjC.cpp')
-rw-r--r-- | lib/Rewrite/Frontend/RewriteModernObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Rewrite/Frontend/RewriteModernObjC.cpp b/lib/Rewrite/Frontend/RewriteModernObjC.cpp index c735da03fd..0dbdbaee33 100644 --- a/lib/Rewrite/Frontend/RewriteModernObjC.cpp +++ b/lib/Rewrite/Frontend/RewriteModernObjC.cpp @@ -5891,8 +5891,8 @@ void RewriteModernObjC::Initialize(ASTContext &context) { Preamble += "(const char *);\n"; Preamble += "__OBJC_RW_DLLIMPORT void objc_exception_throw( struct objc_object *);\n"; // @synchronized hooks. - Preamble += "__OBJC_RW_DLLIMPORT void objc_sync_enter( struct objc_object *);\n"; - Preamble += "__OBJC_RW_DLLIMPORT void objc_sync_exit( struct objc_object *);\n"; + Preamble += "__OBJC_RW_DLLIMPORT int objc_sync_enter( struct objc_object *);\n"; + Preamble += "__OBJC_RW_DLLIMPORT int objc_sync_exit( struct objc_object *);\n"; Preamble += "__OBJC_RW_DLLIMPORT Protocol *objc_getProtocol(const char *);\n"; Preamble += "#ifndef __FASTENUMERATIONSTATE\n"; Preamble += "struct __objcFastEnumerationState {\n\t"; |