[PATCH] D44956: [analyzer] Fix liveness calculation for C++17 structured bindings
Artem Dergachev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 30 18:23:01 PDT 2018
NoQ added inline comments.
================
Comment at: test/Analysis/live-bindings-test.cpp:60
+int kill_one_binding2() {
+ auto [a, b] = GetNumbers(); // expected-warning{{Value stored to '[a, b]' during its initialization is never read}}
+ a = 100;
----------------
george.karpenkov wrote:
> NoQ wrote:
> > Should we, as a FIXME, specify that only `'b'` is unused?
> I'm not sure what do you mean; Here both variables are dead?
Whoops right.
Repository:
rL LLVM
https://reviews.llvm.org/D44956
More information about the llvm-commits
mailing list