projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5acd669
)
[IR] fix declaration of shuffle mask
author
Sanjay Patel
<spatel@rotateright.com>
Thu, 30 Aug 2018 16:44:07 +0000
(16:44 +0000)
committer
Sanjay Patel
<spatel@rotateright.com>
Thu, 30 Aug 2018 16:44:07 +0000
(16:44 +0000)
An address sanitizer bot flagged this as a potential bug.
llvm-svn: 341084
llvm/lib/IR/Instructions.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Instructions.cpp
b/llvm/lib/IR/Instructions.cpp
index
2bf9f0b
..
266345b
100644
(file)
--- a/
llvm/lib/IR/Instructions.cpp
+++ b/
llvm/lib/IR/Instructions.cpp
@@
-1780,7
+1780,7
@@
bool ShuffleVectorInst::isIdentityWithPadding() const {
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;