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:
36fe1a9
)
[GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
author
Fangrui Song
<i@maskray.me>
Tue, 1 Dec 2020 02:31:42 +0000
(18:31 -0800)
committer
Fangrui Song
<i@maskray.me>
Tue, 1 Dec 2020 02:31:42 +0000
(18:31 -0800)
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
index
8abee20
..
084ff1c
100644
(file)
--- a/
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ b/
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@
-657,6
+657,8
@@
MachineInstrBuilder MachineIRBuilder::buildShuffleVector(const DstOp &Res,
assert(Src1Ty.getNumElements() + Src2Ty.getNumElements() >= Mask.size());
assert(DstTy.getElementType() == Src1Ty.getElementType() &&
DstTy.getElementType() == Src2Ty.getElementType());
+ (void)Src1Ty;
+ (void)Src2Ty;
ArrayRef<int> MaskAlloc = getMF().allocateShuffleMask(Mask);
return buildInstr(TargetOpcode::G_SHUFFLE_VECTOR, {DstTy}, {Src1, Src2})
.addShuffleMask(MaskAlloc);