summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-03-12 23:15:19 +0000
committerSteve Naroff <snaroff@apple.com>2008-03-12 23:15:19 +0000
commit35cb7960e376b4204e23cc7ca3b0b6ce0ed6c0f1 (patch)
treeb2844de49549af392ed2f727f33f6c0696746ead /clang/test
parent65e9d5f1a873365b47c147073368719029a7f4c8 (diff)
downloadbcm5719-llvm-35cb7960e376b4204e23cc7ca3b0b6ce0ed6c0f1.tar.gz
bcm5719-llvm-35cb7960e376b4204e23cc7ca3b0b6ce0ed6c0f1.zip
Two fixes to RewriteTest::RewriteObjCIvarRefExpr():
- For explicit ivar refers, make sure the cast is propagated to the AST. - Don't free the base (since it is still in use). This fixes the recent regression to test/Rewriter/objc-ivar-receiver-1.m. llvm-svn: 48309
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Rewriter/objc-ivar-receiver-1.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Rewriter/objc-ivar-receiver-1.m b/clang/test/Rewriter/objc-ivar-receiver-1.m
index 5592be4213f..27287dc275e 100644
--- a/clang/test/Rewriter/objc-ivar-receiver-1.m
+++ b/clang/test/Rewriter/objc-ivar-receiver-1.m
@@ -17,6 +17,7 @@
+ (NSInvocation *)invocationWithMethodSignature {
NSInvocation *newInv;
+ id obj = newInv->_container;
[newInv->_container addObject:0];
return 0;
}
OpenPOWER on IntegriCloud