Fix compile warnings.

llvm-svn: 58840
This commit is contained in:
Richard Osborne 2008-11-07 11:21:09 +00:00
parent 3395d4485d
commit 3219819ffe
2 changed files with 3 additions and 3 deletions

View File

@ -147,9 +147,9 @@ emitExternDirective(const std::string &name)
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()))
{

View File

@ -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;