Skip to content

Commit 26670dc

Browse files
committed
fix PR4513, a build problem with VC++, patch by James Abbatiello!
llvm-svn: 75013
1 parent 121563c commit 26670dc

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
@@ -17,6 +17,10 @@
1717

1818
#include <cstring>
1919

20+
// VC++ defines 'alloca' as an object-like macro, which interferes with our
21+
// builtins.
22+
#undef alloca
23+
2024
namespace llvm {
2125
template <typename T> class SmallVectorImpl;
2226
}

0 commit comments

Comments
 (0)