From d47013537d8b98c5c5f22c0fef99f7a78431b4d8 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 26 Aug 2019 18:33:15 +0000 Subject: [PATCH] [msvc] Add necessary #include to make compiler intrinsics available. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369944 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Stack.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Basic/Stack.cpp b/lib/Basic/Stack.cpp index a831002573..5e47509315 100644 --- a/lib/Basic/Stack.cpp +++ b/lib/Basic/Stack.cpp @@ -15,6 +15,10 @@ #include "llvm/ADT/Optional.h" #include "llvm/Support/CrashRecoveryContext.h" +#ifdef _MSC_VER +#include // for _AddressOfReturnAddress +#endif + static LLVM_THREAD_LOCAL void *BottomOfStack = nullptr; static void *getStackPointer() { -- 2.40.0