mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-01 20:43:13 +01:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user