diff options
author | Richard Osborne <richard@xmos.com> | 2008-11-07 11:21:09 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2008-11-07 11:21:09 +0000 |
commit | da4b94034e48e145883ce5196601b57d18006356 (patch) | |
tree | 8354bfad7ed29ad9c2fc5b604dd64a632e8691b7 /lib/Target/XCore/XCoreISelDAGToDAG.cpp | |
parent | 7ca4818cca682c1437aa366395814222c5d5cd6a (diff) | |
download | external_llvm-da4b94034e48e145883ce5196601b57d18006356.zip external_llvm-da4b94034e48e145883ce5196601b57d18006356.tar.gz external_llvm-da4b94034e48e145883ce5196601b57d18006356.tar.bz2 |
Fix compile warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/XCore/XCoreISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreISelDAGToDAG.cpp b/lib/Target/XCore/XCoreISelDAGToDAG.cpp index 338f98e..28b501d 100644 --- a/lib/Target/XCore/XCoreISelDAGToDAG.cpp +++ b/lib/Target/XCore/XCoreISelDAGToDAG.cpp @@ -83,7 +83,7 @@ FunctionPass *llvm::createXCoreISelDag(XCoreTargetMachine &TM) { bool XCoreDAGToDAGISel::SelectADDRspii(SDValue Op, SDValue Addr, SDValue &Base, SDValue &Offset) { FrameIndexSDNode *FIN = 0; - if (FIN = dyn_cast<FrameIndexSDNode>(Addr)) { + if ((FIN = dyn_cast<FrameIndexSDNode>(Addr))) { Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32); Offset = CurDAG->getTargetConstant(0, MVT::i32); return true; |