[PATCH] D19410: [scan-build] fix logic error warnings emitted on llvm code base

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 07:54:16 PDT 2016


tstellarAMD added inline comments.

================
Comment at: lib/Target/AMDGPU/SIInstrInfo.cpp:1867-1870
@@ -1866,6 +1866,6 @@
 
   if (!DefinedRC) {
     // This operand expects an immediate.
     return true;
   }
 
----------------
A better fix would be move this if block to the top of the function before the first use of DefinedRC.


http://reviews.llvm.org/D19410





More information about the llvm-commits mailing list