[llvm-commits] [llvm] r58840 - in /llvm/trunk/lib/Target/XCore: XCoreAsmPrinter.cpp XCoreISelDAGToDAG.cpp
Richard Osborne
richard at xmos.com
Fri Nov 7 03:21:13 PST 2008
Author: friedgold
Date: Fri Nov 7 05:21:09 2008
New Revision: 58840
URL: http://llvm.org/viewvc/llvm-project?rev=58840&view=rev
Log:
Fix compile warnings.
Modified:
llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp
llvm/trunk/lib/Target/XCore/XCoreISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp?rev=58840&r1=58839&r2=58840&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp Fri Nov 7 05:21:09 2008
@@ -147,9 +147,9 @@
void XCoreAsmPrinter::
emitArrayBound(const std::string &name, const GlobalVariable *GV)
{
- assert((GV->hasExternalLinkage() ||
+ assert(((GV->hasExternalLinkage() ||
GV->hasWeakLinkage()) ||
- GV->hasLinkOnceLinkage() && "Unexpected linkage");
+ GV->hasLinkOnceLinkage()) && "Unexpected linkage");
if (const ArrayType *ATy = dyn_cast<ArrayType>(
cast<PointerType>(GV->getType())->getElementType()))
{
Modified: llvm/trunk/lib/Target/XCore/XCoreISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreISelDAGToDAG.cpp?rev=58840&r1=58839&r2=58840&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/XCore/XCoreISelDAGToDAG.cpp Fri Nov 7 05:21:09 2008
@@ -83,7 +83,7 @@
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;
More information about the llvm-commits
mailing list