diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-12-01 04:36:53 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-12-01 04:36:53 +0000 |
commit | 508d25f26bf636d5e2c78ce720c7c67bb87d43d2 (patch) | |
tree | f5a86ce43137482dce74b0f7959ea46d1c0b29cb /lib/Target | |
parent | ae38e1a9b485dcbeddac0ac9530c195e387cafe3 (diff) | |
download | external_llvm-508d25f26bf636d5e2c78ce720c7c67bb87d43d2.zip external_llvm-508d25f26bf636d5e2c78ce720c7c67bb87d43d2.tar.gz external_llvm-508d25f26bf636d5e2c78ce720c7c67bb87d43d2.tar.bz2 |
Merging r195905:
------------------------------------------------------------------------
r195905 | jiangning | 2013-11-27 17:34:55 -0800 (Wed, 27 Nov 2013) | 3 lines
Remove the variable only used by assert to avoid the build failure
caused by build options [-Werror,-Wunused-variable].
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/AArch64/AArch64ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/AArch64/AArch64ISelLowering.cpp b/lib/Target/AArch64/AArch64ISelLowering.cpp index 7311d55..1523252 100644 --- a/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -4241,8 +4241,8 @@ AArch64TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, // Test if V1 is a CONCAT_VECTORS. if (V1.getOpcode() == ISD::CONCAT_VECTORS) { if (V1.getOperand(1).getOpcode() == ISD::UNDEF) { - int V1EltNum = V1.getOperand(0).getValueType().getVectorNumElements(); - assert((Lane < V1EltNum) && "Invalid vector lane access"); + assert((Lane < V1.getOperand(0).getValueType().getVectorNumElements()) + && "Invalid vector lane access"); return DAG.getNode(AArch64ISD::NEON_VDUPLANE, dl, VT, V1.getOperand(0), DAG.getConstant(Lane, MVT::i64)); } |