[clang] [clang] Remove #undef alloca (PR #81534)

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 12 13:02:17 PST 2024


https://github.com/aeubanks created https://github.com/llvm/llvm-project/pull/81534

Added in 26670dcba1609574cba5942aff78ff97b567c5f3.

>From c659a573a066809473ebb36421e612dcdcda5aef Mon Sep 17 00:00:00 2001
From: Arthur Eubanks <aeubanks at google.com>
Date: Mon, 12 Feb 2024 21:01:39 +0000
Subject: [PATCH] [clang] Remove #undef alloca

Added in 26670dcba1609574cba5942aff78ff97b567c5f3.
---
 clang/include/clang/Basic/Builtins.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/clang/include/clang/Basic/Builtins.h b/clang/include/clang/Basic/Builtins.h
index f955d21169556a..6700d1903a0088 100644
--- a/clang/include/clang/Basic/Builtins.h
+++ b/clang/include/clang/Basic/Builtins.h
@@ -20,10 +20,6 @@
 #include "llvm/ADT/StringRef.h"
 #include <cstring>
 
-// VC++ defines 'alloca' as an object-like macro, which interferes with our
-// builtins.
-#undef alloca
-
 namespace clang {
 class TargetInfo;
 class IdentifierTable;



More information about the cfe-commits mailing list