[llvm] r341084 - [IR] fix declaration of shuffle mask
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 30 09:44:07 PDT 2018
Author: spatel
Date: Thu Aug 30 09:44:07 2018
New Revision: 341084
URL: http://llvm.org/viewvc/llvm-project?rev=341084&view=rev
Log:
[IR] fix declaration of shuffle mask
An address sanitizer bot flagged this as a potential bug.
Modified:
llvm/trunk/lib/IR/Instructions.cpp
Modified: llvm/trunk/lib/IR/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Instructions.cpp?rev=341084&r1=341083&r2=341084&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Instructions.cpp (original)
+++ llvm/trunk/lib/IR/Instructions.cpp Thu Aug 30 09:44:07 2018
@@ -1780,7 +1780,7 @@ bool ShuffleVectorInst::isIdentityWithPa
return false;
// The first part of the mask must choose elements from exactly 1 source op.
- ArrayRef<int> Mask = getShuffleMask();
+ SmallVector<int, 16> Mask = getShuffleMask();
if (!isIdentityMaskImpl(Mask, NumOpElts))
return false;
More information about the llvm-commits
mailing list