summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-02-26 09:56:32 +0000
committerHans Wennborg <hans@hanshq.net>2018-02-26 09:56:32 +0000
commitc93e390d8ea4da515711e1dc56f2a08bf9823934 (patch)
tree45e049f4b54fd64cd840f981a0f28e8d4aca64cb
parent16ebb58ea40d384e8daa4c48d2bf7dd1ccfa5fcd (diff)
Fix an unused variable warning in non-assert builds
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@326075 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/AArch64/AArch64InstructionSelector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/AArch64/AArch64InstructionSelector.cpp b/lib/Target/AArch64/AArch64InstructionSelector.cpp
index 0bc5b395499..7d2ec1be288 100644
--- a/lib/Target/AArch64/AArch64InstructionSelector.cpp
+++ b/lib/Target/AArch64/AArch64InstructionSelector.cpp
@@ -840,6 +840,7 @@ bool AArch64InstructionSelector::select(MachineInstr &I,
case TargetOpcode::G_EXTRACT: {
LLT SrcTy = MRI.getType(I.getOperand(1).getReg());
LLT DstTy = MRI.getType(I.getOperand(0).getReg());
+ (void)DstTy;
unsigned SrcSize = SrcTy.getSizeInBits();
// Larger extracts are vectors, same-size extracts should be something else
// by now (either split up or simplified to a COPY).