forked from OSchip/llvm-project
fix a build problem with VC++, PR5664, patch by Alp Toker!
llvm-svn: 90419
This commit is contained in:
parent
0bbd3077ce
commit
c831fac043
|
@ -418,11 +418,13 @@ bool ARMBaseInstrInfo::isPredicable(MachineInstr *MI) const {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// FIXME: Works around a gcc miscompilation with -fstrict-aliasing
|
/// FIXME: Works around a gcc miscompilation with -fstrict-aliasing.
|
||||||
|
DISABLE_INLINE
|
||||||
static unsigned getNumJTEntries(const std::vector<MachineJumpTableEntry> &JT,
|
static unsigned getNumJTEntries(const std::vector<MachineJumpTableEntry> &JT,
|
||||||
unsigned JTI) DISABLE_INLINE;
|
unsigned JTI);
|
||||||
static unsigned getNumJTEntries(const std::vector<MachineJumpTableEntry> &JT,
|
static unsigned getNumJTEntries(const std::vector<MachineJumpTableEntry> &JT,
|
||||||
unsigned JTI) {
|
unsigned JTI) {
|
||||||
|
assert(JTI < JT.size());
|
||||||
return JT[JTI].MBBs.size();
|
return JT[JTI].MBBs.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue