Patch to support MSVC correctly, contributed by Morten Ofstad!
authorChris Lattner <sabre@nondot.org>
Mon, 25 Oct 2004 18:38:05 +0000 (18:38 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 25 Oct 2004 18:38:05 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17213 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Config/alloca.h

index b4133259dc14750bf7c9e786f811c1aa04bf9e5b..7351aa4dc862982462887dae770d8b5dfb7a8bf4 100644 (file)
@@ -24,7 +24,8 @@
  *        (notably FreeBSD) defined alloca() there.
  */
 #ifdef _MSC_VER
-/* noop on Visual C++ */
+#include <malloc.h>
+#define alloca _alloca
 #elif defined(HAVE_ALLOCA_H)
 #include <alloca.h>
 #elif defined(__MINGW_H) && defined(HAVE_MALLOC_H)