mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Unbreak the MSVC build. Since the "next" function already exists in the MSVC headers, we need the explicit llvm:: qualifier to prevent a conflict.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135623 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1769a3df4a
commit
c3d48cee49
@ -95,7 +95,7 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
|
|||||||
BB.addSucc(&f.getBlockAtAddress(Inst.Address+Inst.Size+Imm));
|
BB.addSucc(&f.getBlockAtAddress(Inst.Address+Inst.Size+Imm));
|
||||||
// Conditional branches can also fall through to the next block.
|
// Conditional branches can also fall through to the next block.
|
||||||
if (Desc.isConditionalBranch() && llvm::next(i) != e)
|
if (Desc.isConditionalBranch() && llvm::next(i) != e)
|
||||||
BB.addSucc(&next(i)->second);
|
BB.addSucc(&llvm::next(i)->second);
|
||||||
} else {
|
} else {
|
||||||
// Indirect branch. Bail and add all blocks of the function as a
|
// Indirect branch. Bail and add all blocks of the function as a
|
||||||
// successor.
|
// successor.
|
||||||
@ -104,8 +104,8 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// No branch. Fall through to the next block.
|
// No branch. Fall through to the next block.
|
||||||
if (!Desc.isReturn() && next(i) != e)
|
if (!Desc.isReturn() && llvm::next(i) != e)
|
||||||
BB.addSucc(&next(i)->second);
|
BB.addSucc(&llvm::next(i)->second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user