[PATCH] D19900: [scan-build] fix dead store warnings emitted on LLVM Hexagon code base

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 06:46:58 PDT 2016


kparzysz added inline comments.

================
Comment at: lib/Target/Hexagon/HexagonOptAddrMode.cpp:399
@@ -398,3 +398,3 @@
   bool Changed = false;
-  unsigned OpStart;
+  unsigned OpStart = 0;
   unsigned OpEnd = OldMI->getNumOperands();
----------------
This is not strictly necessary since OpStart is only used when Changed it "true".  That happens iff OpStart is assigned a value.


http://reviews.llvm.org/D19900





More information about the llvm-commits mailing list