[cfe-commits] r65044 - /cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp

Steve Naroff snaroff at apple.com
Thu Feb 19 06:58:16 PST 2009


Author: snaroff
Date: Thu Feb 19 08:58:15 2009
New Revision: 65044

URL: http://llvm.org/viewvc/llvm-project?rev=65044&view=rev
Log:
Fix <rdar://problem/6598682> clang ObjC rewriter: Rewritten protocol-compliant ivar causes C++ compile error.

Cut/paste error resulting in recent regression.

Modified:
    cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp

Modified: cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp?rev=65044&r1=65043&r2=65044&view=diff

==============================================================================
--- cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp (original)
+++ cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp Thu Feb 19 08:58:15 2009
@@ -3215,7 +3215,7 @@
       Result += (*IVI)->getNameAsString();
       Result += "\", \"";
       std::string TmpString, StrEncoding;
-      Context->getObjCEncodingForType((*IVI)->getType(), StrEncoding, *IVI);
+      Context->getObjCEncodingForType((*IVI)->getType(), TmpString, *IVI);
       QuoteDoublequotes(TmpString, StrEncoding);
       Result += StrEncoding;
       Result += "\", ";





More information about the cfe-commits mailing list