[llvm] r321107 - [CGP] Format. NFC

Haicheng Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 19 12:53:33 PST 2017


Author: haicheng
Date: Tue Dec 19 12:53:32 2017
New Revision: 321107

URL: http://llvm.org/viewvc/llvm-project?rev=321107&view=rev
Log:
[CGP] Format. NFC

Clang-format.

Modified:
    llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp?rev=321107&r1=321106&r2=321107&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp Tue Dec 19 12:53:32 2017
@@ -3704,7 +3704,7 @@ bool AddressingModeMatcher::matchOperati
       } else {
         uint64_t TypeSize = DL.getTypeAllocSize(GTI.getIndexedType());
         if (ConstantInt *CI = dyn_cast<ConstantInt>(AddrInst->getOperand(i))) {
-          ConstantOffset += CI->getSExtValue()*TypeSize;
+          ConstantOffset += CI->getSExtValue() * TypeSize;
         } else if (TypeSize) {  // Scales of zero don't do anything.
           // We only allow one variable index at the moment.
           if (VariableOperand != -1)




More information about the llvm-commits mailing list