[llvm-commits] [llvm] r149005 - /llvm/trunk/lib/VMCore/Instructions.cpp

Chris Lattner sabre at nondot.org
Wed Jan 25 16:41:50 PST 2012


Author: lattner
Date: Wed Jan 25 18:41:50 2012
New Revision: 149005

URL: http://llvm.org/viewvc/llvm-project?rev=149005&view=rev
Log:
fix pasto in the new (and still unused) ShuffleVectorInst::getShuffleMask method.

Modified:
    llvm/trunk/lib/VMCore/Instructions.cpp

Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=149005&r1=149004&r2=149005&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Wed Jan 25 18:41:50 2012
@@ -1649,7 +1649,7 @@
   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());
   }
 }
 





More information about the llvm-commits mailing list