From: Chris Lattner Date: Thu, 3 Dec 2009 06:58:32 +0000 (+0000) Subject: fix a build problem with VC++, PR5664, patch by Alp Toker! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=56856b1f46ec1f073ceef4e826c544b8b1691608;p=oota-llvm.git fix a build problem with VC++, PR5664, patch by Alp Toker! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90419 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp index 6e476a6e62b..15ee77bb417 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.cpp +++ b/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 &JT, - unsigned JTI) DISABLE_INLINE; + unsigned JTI); static unsigned getNumJTEntries(const std::vector &JT, unsigned JTI) { + assert(JTI < JT.size()); return JT[JTI].MBBs.size(); }