Skip to content

Commit 742a06f

Browse files
authored
[clang] Remove #undef alloca workaround (#81534)
Added in 26670dc to workaround #4885. Windows CI and a local Windows build are happy with this change, so it seems like this has been properly fixed at some point. If this does break somebody, this can be easily reverted. (Also, Linux does the same `#define alloca` in system headers, so I'm not sure why it'd be different on Windows) This is tech debt that caused breakages, see comments on #71709.
1 parent 9be7b0a commit 742a06f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/include/clang/Basic/Builtins.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
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-
2723
namespace clang {
2824
class TargetInfo;
2925
class IdentifierTable;

0 commit comments

Comments
 (0)