aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-06-29 22:51:12 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-06-29 22:51:12 +0000
commitbebf6222f6b7cc871cfbc51f78cdb33d17fedb6c (patch)
tree36457d419a9c2b3cb2abadb9730dfa7363126992 /lib
parentedac9151fdc24dc2d1eb4692bbfdd71baca12949 (diff)
downloadexternal_llvm-bebf6222f6b7cc871cfbc51f78cdb33d17fedb6c.zip
external_llvm-bebf6222f6b7cc871cfbc51f78cdb33d17fedb6c.tar.gz
external_llvm-bebf6222f6b7cc871cfbc51f78cdb33d17fedb6c.tar.bz2
NVPTX: Fold otherwise unused variable into assert.
Avoids unused variable warnings in release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/NVPTX/NVPTXISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelLowering.cpp b/lib/Target/NVPTX/NVPTXISelLowering.cpp
index 0ff1a98..871bc3c 100644
--- a/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -657,7 +657,6 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
const DataLayout *TD = getDataLayout();
MachineFunction &MF = DAG.getMachineFunction();
const Function *F = MF.getFunction();
- const TargetLowering *TLI = nvTM->getTargetLowering();
SDValue tempChain = Chain;
Chain =
@@ -1076,7 +1075,8 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
EVT ObjectVT = getValueType(retTy);
unsigned NumElts = ObjectVT.getVectorNumElements();
EVT EltVT = ObjectVT.getVectorElementType();
- assert(TLI->getNumRegisters(F->getContext(), ObjectVT) == NumElts &&
+ assert(nvTM->getTargetLowering()->getNumRegisters(F->getContext(),
+ ObjectVT) == NumElts &&
"Vector was not scalarized");
unsigned sz = EltVT.getSizeInBits();
bool needTruncate = sz < 16 ? true : false;