[llvm] r339388 - [LICM] Suppress a compiler warning noticed by one of the bots

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 9 14:15:33 PDT 2018


Author: reames
Date: Thu Aug  9 14:15:33 2018
New Revision: 339388

URL: http://llvm.org/viewvc/llvm-project?rev=339388&view=rev
Log:
[LICM] Suppress a compiler warning noticed by one of the bots


Modified:
    llvm/trunk/lib/Transforms/Scalar/LICM.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LICM.cpp?rev=339388&r1=339387&r2=339388&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LICM.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LICM.cpp Thu Aug  9 14:15:33 2018
@@ -697,6 +697,7 @@ bool llvm::canSinkOrHoistInst(Instructio
     if (!UniqueI)
       // other memory op, give up
       return false;
+    (void)FI; //suppress unused variable warning
     assert(UniqueI == FI && "AS must contain FI");
     return true;
   }




More information about the llvm-commits mailing list