diff options
author | Steve Naroff <snaroff@apple.com> | 2008-10-21 13:37:27 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-10-21 13:37:27 +0000 |
commit | 94ac21ea70f22d695c2a406a07d121d16e505a1b (patch) | |
tree | dbbf0c76c2c9fb408fa4f3cfb38a93e732055a5a | |
parent | abacf9176fd67eb3c91151b8a36e55269717bb8e (diff) |
Fix <rdar://problem/6297052> confused in some way by embedded /* */ comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57903 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/RewriteObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/RewriteObjC.cpp b/Driver/RewriteObjC.cpp index 18afbaa685..14f6ade591 100644 --- a/Driver/RewriteObjC.cpp +++ b/Driver/RewriteObjC.cpp @@ -595,8 +595,8 @@ void RewriteObjC::RewriteMethodDeclaration(ObjCMethodDecl *Method) { SourceLocation LocEnd = Method->getLocEnd(); if (SM->getLineNumber(LocEnd) > SM->getLineNumber(LocStart)) { - InsertText(LocStart, "/* ", 3); - ReplaceText(LocEnd, 1, ";*/ ", 4); + InsertText(LocStart, "#if 0\n", 6); + ReplaceText(LocEnd, 1, ";\n#endif\n", 9); } else { InsertText(LocStart, "// ", 3); } |