Fix alloca use on mingw.
This commit is contained in:
4
opt.cpp
4
opt.cpp
@@ -79,7 +79,9 @@
|
|||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
#elif defined(ISPC_IS_WINDOWS)
|
#elif defined(ISPC_IS_WINDOWS)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#define alloca _alloca
|
#ifndef __MINGW32__
|
||||||
|
#define alloca _alloca
|
||||||
|
#endif
|
||||||
#endif // ISPC_IS_WINDOWS
|
#endif // ISPC_IS_WINDOWS
|
||||||
|
|
||||||
static llvm::Pass *CreateIntrinsicsOptPass();
|
static llvm::Pass *CreateIntrinsicsOptPass();
|
||||||
|
|||||||
Reference in New Issue
Block a user