diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-12-03 06:58:32 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-12-03 06:58:32 +0000 |
| commit | c831fac04360108d1924b664fa6299ed05eccc79 (patch) | |
| tree | fa2ff3182b0458a2666989f89e45f3815027ac99 /llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp | |
| parent | 0bbd3077ce4257833ca9d0986b6cf2c5045ce19c (diff) | |
| download | bcm5719-llvm-c831fac04360108d1924b664fa6299ed05eccc79.tar.gz bcm5719-llvm-c831fac04360108d1924b664fa6299ed05eccc79.zip | |
fix a build problem with VC++, PR5664, patch by Alp Toker!
llvm-svn: 90419
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp index 6e476a6e62b..15ee77bb417 100644 --- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp +++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp @@ -418,11 +418,13 @@ bool ARMBaseInstrInfo::isPredicable(MachineInstr *MI) const { 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, - unsigned JTI) DISABLE_INLINE; + unsigned JTI); static unsigned getNumJTEntries(const std::vector<MachineJumpTableEntry> &JT, unsigned JTI) { + assert(JTI < JT.size()); return JT[JTI].MBBs.size(); } |

