thakis added a comment.

Thanks! Can you add a test somewhere?  `grep -R W.*uninitialized test/Sema*` 
will probably show you the existing test for this code. (Another technique: 
Comment some of the existing tests, run `ninja check-clang`, and see which 
tests start failing.)

You can run an individual test via `bin/llvm-lit 
../../llvm/tools/clang/test/Sema/mytest.cc`.



================
Comment at: clang/lib/Sema/AnalysisBasedWarnings.cpp:907
     else
       DiagUninitUse(S, VD, Use, true);
   }
----------------
Should the check be in DiagUninitUse()? Or is there a reason this one should 
happen for volatiles?


https://reviews.llvm.org/D28543



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to