Skip to content

Commit 9fad04c

Browse files
authored
Revert "[clang] Remove #undef alloca workaround (#81534)"
This reverts commit 742a06f.
1 parent 2422e96 commit 9fad04c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/include/clang/Basic/Builtins.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include "llvm/ADT/StringRef.h"
2121
#include <cstring>
2222

23+
// VC++ defines 'alloca' as an object-like macro, which interferes with our
24+
// builtins.
25+
#undef alloca
26+
2327
namespace clang {
2428
class TargetInfo;
2529
class IdentifierTable;

0 commit comments

Comments
 (0)