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.
This commit is contained in:
kai
2014-01-10 12:08:08 +01:00
parent 37ccbf463c
commit 5aa06092cd

View File

@@ -23,6 +23,10 @@
#include "llvm/Attributes.h"
#endif
#if defined(_MSC_VER)
#include "root.h"
#endif
#include <vector>
class DValue;
@@ -103,9 +107,15 @@ struct IrFuncTy
// normal explicit arguments
// typedef llvm::SmallVector<IrFuncTyArg*, 4> ArgList;
#if defined(_MSC_VER)
typedef Array<IrFuncTyArg> ArgList;
typedef ArgList::iterator ArgIter;
typedef ArgList::reverse_iterator ArgRIter;
#else
typedef std::vector<IrFuncTyArg*> ArgList;
typedef ArgList::iterator ArgIter;
typedef ArgList::reverse_iterator ArgRIter;
#endif
ArgList args;
// C varargs