mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 12:09:51 +00:00
Fix compile warnings.
llvm-svn: 58840
This commit is contained in:
parent
3395d4485d
commit
3219819ffe
@ -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()))
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user