diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-29 22:51:12 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-29 22:51:12 +0000 |
commit | bebf6222f6b7cc871cfbc51f78cdb33d17fedb6c (patch) | |
tree | 36457d419a9c2b3cb2abadb9730dfa7363126992 /lib | |
parent | edac9151fdc24dc2d1eb4692bbfdd71baca12949 (diff) | |
download | external_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.cpp | 4 |
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; |