[llvm-branch-commits] [clang] 9fad04c - Revert "[clang] Remove #undef alloca workaround (#81534)"

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 13 10:53:39 PST 2024


Author: Prabhuk
Date: 2024-02-13T10:53:32-08:00
New Revision: 9fad04c4a52e00ed1b056de01546af75cc4e366b

URL: https://github.com/llvm/llvm-project/commit/9fad04c4a52e00ed1b056de01546af75cc4e366b
DIFF: https://github.com/llvm/llvm-project/commit/9fad04c4a52e00ed1b056de01546af75cc4e366b.diff

LOG: Revert "[clang] Remove #undef alloca workaround (#81534)"

This reverts commit 742a06f577b4c3b1c1f994e91bb6579ae89fe4b0.

Added: 
    

Modified: 
    clang/include/clang/Basic/Builtins.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/Builtins.h b/clang/include/clang/Basic/Builtins.h
index 6700d1903a008..f955d21169556 100644
--- a/clang/include/clang/Basic/Builtins.h
+++ b/clang/include/clang/Basic/Builtins.h
@@ -20,6 +20,10 @@
 #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 llvm-branch-commits mailing list