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 += "\", ";


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to