diff options
-rw-r--r-- | lib/VMCore/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 46d5e7a448..1de7c01c0d 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -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()); } } |