fix pasto in the new (and still unused) ShuffleVectorInst::getShuffleMask method.
authorChris Lattner <sabre@nondot.org>
Thu, 26 Jan 2012 00:41:50 +0000 (00:41 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Jan 2012 00:41:50 +0000 (00:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149005 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Instructions.cpp

index 46d5e7a44813655334aee77efe234d213ac41940..1de7c01c0d501673ea05de05920fd08deb3c6572 100644 (file)
@@ -1649,7 +1649,7 @@ void ShuffleVectorInst::getShuffleMask(SmallVectorImpl<int> &Result) const {
   for (unsigned i = 0; i != NumElts; ++i) {
     Constant *C = Mask->getAggregateElement(i);
     Result.push_back(isa<UndefValue>(C) ? -1 :
-                     cast<ConstantInt>(Mask)->getZExtValue());
+                     cast<ConstantInt>(C)->getZExtValue());
   }
 }