[llvm-commits] [llvm] r90419 - /llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
Chris Lattner
sabre at nondot.org
Wed Dec 2 22:58:32 PST 2009
Author: lattner
Date: Thu Dec 3 00:58:32 2009
New Revision: 90419
URL: http://llvm.org/viewvc/llvm-project?rev=90419&view=rev
Log:
fix a build problem with VC++, PR5664, patch by Alp Toker!
Modified:
llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=90419&r1=90418&r2=90419&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Thu Dec 3 00:58:32 2009
@@ -418,11 +418,13 @@
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();
}
More information about the llvm-commits
mailing list