diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-22 20:27:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-22 20:27:48 +0000 |
commit | 92d48a71f551093efbbbd53f402c4257cf91f8d3 (patch) | |
tree | 565a0f0e2b8b0c95fe6b9104a8ce2db253fcfa38 /clang/test/Analysis/outofbound.c | |
parent | 483e12e09e0d9016a754be6c45e967435f8d31e0 (diff) | |
download | bcm5719-llvm-92d48a71f551093efbbbd53f402c4257cf91f8d3.tar.gz bcm5719-llvm-92d48a71f551093efbbbd53f402c4257cf91f8d3.zip |
Fix RegionStore::getLValueElement() to handle the case when the base region is not an ElementRegion (also do some cleanups of its core logic).
This gets array-struct.c to work with RegionStore.
llvm-svn: 62781
Diffstat (limited to 'clang/test/Analysis/outofbound.c')
-rw-r--r-- | clang/test/Analysis/outofbound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/outofbound.c b/clang/test/Analysis/outofbound.c index ab9c0cfa4c8..b0c2db43862 100644 --- a/clang/test/Analysis/outofbound.c +++ b/clang/test/Analysis/outofbound.c @@ -2,5 +2,5 @@ char f1() { char* s = "abcd"; - return s[5]; // expected-warning{{Load or store into an out-of-bound memory position.}} + return s[6]; // expected-warning{{Load or store into an out-of-bound memory position.}} } |