diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-10-15 16:49:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-10-15 16:49:56 +0000 |
commit | 26c5578d849a5f9cdc3044ae67e2857bbe038215 (patch) | |
tree | aad8426c82d2ac8d3b6222004bf36badc26919a0 /clang/test | |
parent | 8f6fca7f304bc97b0de806349bc9bd6222704070 (diff) | |
download | bcm5719-llvm-26c5578d849a5f9cdc3044ae67e2857bbe038215.tar.gz bcm5719-llvm-26c5578d849a5f9cdc3044ae67e2857bbe038215.zip |
When performing typo correction, keep track of whether the last lookup
we did was an acceptable lookup. If it is, then we can re-use that
lookup result. If it isn't, we have to perform the lookup again. This
is almost surely the cause behind the mysterious typo.m failures on
some builders; we were getting the wrong lookup results returned.
llvm-svn: 116586
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/FixIt/typo.m | 3 | ||||
-rw-r--r-- | clang/test/SemaObjC/synth-provisional-ivars.m | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/clang/test/FixIt/typo.m b/clang/test/FixIt/typo.m index 0be21a0fe2e..b8c57e46e3b 100644 --- a/clang/test/FixIt/typo.m +++ b/clang/test/FixIt/typo.m @@ -2,9 +2,6 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -x objective-c -E -P %s -o %t // RUN: %clang_cc1 -x objective-c -fsyntax-only -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fixit %t || true // RUN: %clang_cc1 -x objective-c -fsyntax-only -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -pedantic -Werror %t -// -// FIXME: Disabled while we investigate failure. -// REQUIRES: disabled @interface NSString // expected-note{{'NSString' declared here}} + (int)method:(int)x; diff --git a/clang/test/SemaObjC/synth-provisional-ivars.m b/clang/test/SemaObjC/synth-provisional-ivars.m index 8ad2233ba4a..10fdbdccb23 100644 --- a/clang/test/SemaObjC/synth-provisional-ivars.m +++ b/clang/test/SemaObjC/synth-provisional-ivars.m @@ -18,7 +18,7 @@ int bar; @end @implementation I -- (int) Meth { return PROP; } +- (int) Meth { return PROP; } // expected-note{{'PROP' declared here}} @dynamic PROP1; - (int) Meth1 { return PROP1; } // expected-error {{use of undeclared identifier 'PROP1'}} |