[msvc] Add necessary #include to make compiler intrinsics available.

llvm-svn: 369944
This commit is contained in:
Richard Smith 2019-08-26 18:33:15 +00:00
parent 9ef6c49baf
commit 4d3a336612
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#include "llvm/ADT/Optional.h"
#include "llvm/Support/CrashRecoveryContext.h"
#ifdef _MSC_VER
#include <intrin.h> // for _AddressOfReturnAddress
#endif
static LLVM_THREAD_LOCAL void *BottomOfStack = nullptr;
static void *getStackPointer() {