diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-07-27 18:49:08 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-07-27 18:49:08 +0000 |
commit | 3e5637f8a1c5b3cc3fa9d4e33a5763883ea97fc6 (patch) | |
tree | 3b9bb647b6b889f721559480fa02c596b3fe00b8 /test/Analysis/rdar-6541136-region.c | |
parent | a84c02d0f4d63975a1c52b9bb8308d88e9d79352 (diff) |
Finesse 'idempotent operations' analyzer issues to include the opcode of the binary operator for clearer error reporting. Also remove the 'Idempotent operation' prefix in messages; it's redundant since the bug type is the same.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/rdar-6541136-region.c')
-rw-r--r-- | test/Analysis/rdar-6541136-region.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/rdar-6541136-region.c b/test/Analysis/rdar-6541136-region.c index c1734eec9b..80c04ae8ca 100644 --- a/test/Analysis/rdar-6541136-region.c +++ b/test/Analysis/rdar-6541136-region.c @@ -9,7 +9,7 @@ extern kernel_tea_cheese_t _wonky_gesticulate_cheese; void test1( void ) { kernel_tea_cheese_t *wonky = &_wonky_gesticulate_cheese; struct load_wine *cmd = (void*) &wonky[1]; - cmd = cmd; // expected-warning{{idempotent operation}} + cmd = cmd; // expected-warning{{Assigned value is always the same as the existing value}} char *p = (void*) &wonky[1]; kernel_tea_cheese_t *q = &wonky[1]; // This test case tests both the RegionStore logic (doesn't crash) and @@ -21,7 +21,7 @@ void test1( void ) { void test1_b( void ) { kernel_tea_cheese_t *wonky = &_wonky_gesticulate_cheese; struct load_wine *cmd = (void*) &wonky[1]; - cmd = cmd; // expected-warning{{idempotent operation}} + cmd = cmd; // expected-warning{{Assigned value is always the same as the existing value}} char *p = (void*) &wonky[1]; *p = 1; // expected-warning{{Access out-of-bound array element (buffer overflow)}} } |