OSDN Git Service

[SimplifyLibCalls] fix formatting; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 9 Jun 2017 14:22:03 +0000 (14:22 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 9 Jun 2017 14:22:03 +0000 (14:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305081 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyLibCalls.cpp

index cc6c47e..b723b65 100644 (file)
@@ -738,8 +738,8 @@ Value *LibCallSimplifier::optimizeMemCmp(CallInst *CI, IRBuilder<> &B) {
   ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2));
   if (!LenC)
     return nullptr;
-  uint64_t Len = LenC->getZExtValue();
 
+  uint64_t Len = LenC->getZExtValue();
   if (Len == 0) // memcmp(s1,s2,0) -> 0
     return Constant::getNullValue(CI->getType());