diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-11-14 23:46:15 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-11-14 23:46:15 +0000 |
commit | e8b0ae1fb61aa8d4e698ed8fabffd16f2bf51605 (patch) | |
tree | 0b47d9e561f2e8b5829c25bb36fdae4b5b44a73f | |
parent | 527388dea5b4220f463a7cef6b1012770d1a80a5 (diff) | |
download | external_llvm-e8b0ae1fb61aa8d4e698ed8fabffd16f2bf51605.zip external_llvm-e8b0ae1fb61aa8d4e698ed8fabffd16f2bf51605.tar.gz external_llvm-e8b0ae1fb61aa8d4e698ed8fabffd16f2bf51605.tar.bz2 |
NVPTXISelLowering.cpp: Fix warnings. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168001 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/NVPTX/NVPTXISelLowering.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelLowering.cpp b/lib/Target/NVPTX/NVPTXISelLowering.cpp index 8430e21..f1a99d7 100644 --- a/lib/Target/NVPTX/NVPTXISelLowering.cpp +++ b/lib/Target/NVPTX/NVPTXISelLowering.cpp @@ -874,10 +874,9 @@ LowerLOAD(SDValue Op, SelectionDAG &DAG) const { SDNode *Node = Op.getNode(); LoadSDNode *LD = cast<LoadSDNode>(Node); DebugLoc dl = Node->getDebugLoc(); - ISD::LoadExtType ExtType = LD->getExtensionType(); - assert(ExtType == ISD::NON_EXTLOAD) ; - EVT VT = Node->getValueType(0); - assert(VT == MVT::i1 && "Custom lowering for i1 load only"); + assert(LD->getExtensionType() == ISD::NON_EXTLOAD) ; + assert(Node->getValueType(0) == MVT::i1 && + "Custom lowering for i1 load only"); SDValue newLD = DAG.getLoad(MVT::i8, dl, LD->getChain(), LD->getBasePtr(), LD->getPointerInfo(), LD->isVolatile(), LD->isNonTemporal(), @@ -903,8 +902,7 @@ LowerSTORE(SDValue Op, SelectionDAG &DAG) const { SDValue Tmp1 = ST->getChain(); SDValue Tmp2 = ST->getBasePtr(); SDValue Tmp3 = ST->getValue(); - EVT VT = Tmp3.getValueType(); - assert(VT == MVT::i1 && "Custom lowering for i1 store only"); + assert(Tmp3.getValueType() == MVT::i1 && "Custom lowering for i1 store only"); unsigned Alignment = ST->getAlignment(); bool isVolatile = ST->isVolatile(); bool isNonTemporal = ST->isNonTemporal(); |