isKnownToBeAPowerOfTwo: Fix a typo in a comment
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 6 Jul 2013 02:24:59 +0000 (02:24 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 6 Jul 2013 02:24:59 +0000 (02:24 +0000)
llvm-svn: 185748

llvm/lib/Analysis/ValueTracking.cpp

index 39bc1a3..b3693b3 100644 (file)
@@ -870,7 +870,7 @@ bool llvm::isKnownToBeAPowerOfTwo(Value *V, bool OrZero, unsigned Depth) {
           if (YBO->getOpcode() == Instruction::And ||
               YBO->getOpcode() == Instruction::Xor)
             if (YBO->getOperand(0) == X || YBO->getOperand(1) == X)
-              if (isKnownToBeAPowerOfTwo(X, /*OrYero*/true, Depth))
+              if (isKnownToBeAPowerOfTwo(X, /*OrZero*/true, Depth))
                 return true;
       }