mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +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.
llvm-svn: 135623
This commit is contained in:
parent
fbaaa3ae98
commit
1b727ad694
@ -95,7 +95,7 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
|
||||
BB.addSucc(&f.getBlockAtAddress(Inst.Address+Inst.Size+Imm));
|
||||
// Conditional branches can also fall through to the next block.
|
||||
if (Desc.isConditionalBranch() && llvm::next(i) != e)
|
||||
BB.addSucc(&next(i)->second);
|
||||
BB.addSucc(&llvm::next(i)->second);
|
||||
} else {
|
||||
// Indirect branch. Bail and add all blocks of the function as a
|
||||
// successor.
|
||||
@ -104,8 +104,8 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
|
||||
}
|
||||
} else {
|
||||
// No branch. Fall through to the next block.
|
||||
if (!Desc.isReturn() && next(i) != e)
|
||||
BB.addSucc(&next(i)->second);
|
||||
if (!Desc.isReturn() && llvm::next(i) != e)
|
||||
BB.addSucc(&llvm::next(i)->second);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user