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