diff --git a/clang/lib/Rewrite/RewriteModernObjC.cpp b/clang/lib/Rewrite/RewriteModernObjC.cpp index a164f7464672..101d35ee88c2 100644 --- a/clang/lib/Rewrite/RewriteModernObjC.cpp +++ b/clang/lib/Rewrite/RewriteModernObjC.cpp @@ -5718,7 +5718,7 @@ static void Write_class_t(ASTContext *Context, std::string &Result, Result += ".cache = "; Result += "&_objc_empty_cache"; Result += ";\n"; Result += "}\n"; - Result += "#pragma section(\".objc_inithooks$B\", long, read, write\n"; + Result += "#pragma section(\".objc_inithooks$B\", long, read, write)\n"; Result += "__declspec(allocate(\".objc_inithooks$B\")) "; Result += "static void *OBJC_CLASS_SETUP2_$_"; Result += CDecl->getNameAsString(); @@ -5805,7 +5805,7 @@ static void Write_category_t(RewriteModernObjC &RewriteObj, ASTContext *Context, Result += ".cls = "; Result += "&OBJC_CLASS_$_"; Result += ClassName; Result += ";\n}\n"; - Result += "#pragma section(\".objc_inithooks$B\", long, read, write\n"; + Result += "#pragma section(\".objc_inithooks$B\", long, read, write)\n"; Result += "__declspec(allocate(\".objc_inithooks$B\")) "; Result += "static void *OBJC_CATEGORY_SETUP2_$_"; Result += ClassDecl->getNameAsString();