From 5aa06092cdb5f8016c0cab778448eae3f2750067 Mon Sep 17 00:00:00 2001 From: kai Date: Fri, 10 Jan 2014 12:08:08 +0100 Subject: [PATCH] Fix issue #570. The use of std::vector<> is replaced by Array<> for MSVC only. This fixes the error. But it is still unclear why std::vector<> fails. --- ir/irfuncty.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ir/irfuncty.h b/ir/irfuncty.h index cb1be16c..d651e027 100644 --- a/ir/irfuncty.h +++ b/ir/irfuncty.h @@ -23,6 +23,10 @@ #include "llvm/Attributes.h" #endif +#if defined(_MSC_VER) +#include "root.h" +#endif + #include class DValue; @@ -103,9 +107,15 @@ struct IrFuncTy // normal explicit arguments // typedef llvm::SmallVector ArgList; +#if defined(_MSC_VER) + typedef Array ArgList; + typedef ArgList::iterator ArgIter; + typedef ArgList::reverse_iterator ArgRIter; +#else typedef std::vector ArgList; typedef ArgList::iterator ArgIter; typedef ArgList::reverse_iterator ArgRIter; +#endif ArgList args; // C varargs