Skip to content

Commit

Permalink
NVPTXISelLowering.cpp: Fix warnings. [-Wunused-variable]
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168001 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Nov 14, 2012
1 parent 527388d commit e8b0ae1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/Target/NVPTX/NVPTXISelLowering.cpp
Expand Up @@ -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(),
Expand All @@ -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();
Expand Down

0 comments on commit e8b0ae1

Please sign in to comment.