]> granicus.if.org Git - clang/commitdiff
Comment out recent regression r44096.
authorSteve Naroff <snaroff@apple.com>
Wed, 14 Nov 2007 03:37:28 +0000 (03:37 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 14 Nov 2007 03:37:28 +0000 (03:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44098 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteTest.cpp

index 5538a900b1bdc86a4db34ae525afb40fe9e2579b..78cd90e9a91f266dd520f107919dd2ad7a1a7679 100644 (file)
@@ -386,7 +386,7 @@ void RewriteTest::RewriteProtocolDecl(ObjcProtocolDecl *PDecl) {
   // Lastly, comment out the @end.
   SourceLocation LocEnd = PDecl->getAtEndLoc();
   Rewrite.ReplaceText(LocEnd, 0, "// ", 3);
-  
+#if 0  
   // Must comment out @optional/@required
   const char *startBuf = SM->getCharacterData(LocStart);
   const char *endBuf = SM->getCharacterData(LocEnd);
@@ -408,11 +408,13 @@ void RewriteTest::RewriteProtocolDecl(ObjcProtocolDecl *PDecl) {
       
     }
   }
-
+#endif
 }
 
 void RewriteTest::RewriteForwardProtocolDecl(ObjcForwardProtocolDecl *PDecl) {
   SourceLocation LocStart = PDecl->getLocation();
+  if (LocStart.isInvalid())
+    assert(false && "Invalid SourceLocation");
   // FIXME: handle forward protocol that are declared across multiple lines.
   Rewrite.ReplaceText(LocStart, 0, "// ", 3);
 }