diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-06-30 10:53:14 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-06-30 10:53:14 +0000 |
commit | 25973455aed1cdc9c40b208c792b5db4f8f1297d (patch) | |
tree | 7fc5f12a8716c208d2fdb8663464665c8c2421f8 /lib/Sema/SemaInit.cpp | |
parent | 8f4eae96bef0902d93535c18b69154ce66f5e546 (diff) |
Fix rdar://8139785 "implement warning on dead expression in comma operator"
As a bonus, fix the warning for || and && operators; it was emitted even if one of the operands had side effects, e.g:
x || test_logical_foo1();
emitted a bogus "expression result unused" for 'x'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
0 files changed, 0 insertions, 0 deletions