[llvm] r293709 - Shut up GCC warning about operator precedence. NFC.

Michael Kuperstein via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 14:48:45 PST 2017


Author: mkuper
Date: Tue Jan 31 16:48:45 2017
New Revision: 293709

URL: http://llvm.org/viewvc/llvm-project?rev=293709&view=rev
Log:
Shut up GCC warning about operator precedence. NFC.

Technically, this is actually changes the expression and the original
assert was "wrong", but since the conjunction is with true, it doesn't
matter in this case.

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp?rev=293709&r1=293708&r2=293709&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp Tue Jan 31 16:48:45 2017
@@ -1175,9 +1175,9 @@ void HexagonLoopIdiomRecognize::collectS
 
 bool HexagonLoopIdiomRecognize::processCopyingStore(Loop *CurLoop,
       StoreInst *SI, const SCEV *BECount) {
-  assert(SI->isSimple() || (SI->isVolatile() && HexagonVolatileMemcpy) &&
-             "Expected only non-volatile stores, or Hexagon-specific memcpy"
-             "to volatile destination.");
+  assert((SI->isSimple() || (SI->isVolatile() && HexagonVolatileMemcpy)) &&
+         "Expected only non-volatile stores, or Hexagon-specific memcpy"
+         "to volatile destination.");
 
   Value *StorePtr = SI->getPointerOperand();
   auto *StoreEv = cast<SCEVAddRecExpr>(SE->getSCEV(StorePtr));




More information about the llvm-commits mailing list