summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-03 06:58:32 +0000
committerChris Lattner <sabre@nondot.org>2009-12-03 06:58:32 +0000
commitc831fac04360108d1924b664fa6299ed05eccc79 (patch)
treefa2ff3182b0458a2666989f89e45f3815027ac99 /llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
parent0bbd3077ce4257833ca9d0986b6cf2c5045ce19c (diff)
downloadbcm5719-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.cpp6
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();
}
OpenPOWER on IntegriCloud