diff options
author | David Blaikie <dblaikie@gmail.com> | 2018-11-17 18:04:13 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2018-11-17 18:04:13 +0000 |
commit | 58546904c7d30c2140a5ffb212fbbff878bc32b4 (patch) | |
tree | 5cdb3fc003cf5da5e287613f191f7cb3c1827b5a /lib/Frontend/CompilerInstance.cpp | |
parent | f9722ecff031a94ce5f8bf1844f5c8abe9991735 (diff) | |
download | clang-58546904c7d30c2140a5ffb212fbbff878bc32b4.tar.gz |
Sink BuryPointer from Clang into LLVM for reuse there
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index be38c69235..cc609bc302 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -38,6 +38,7 @@ #include "clang/Serialization/ASTReader.h" #include "clang/Serialization/GlobalModuleIndex.h" #include "llvm/ADT/Statistic.h" +#include "llvm/Support/BuryPointer.h" #include "llvm/Support/CrashRecoveryContext.h" #include "llvm/Support/Errc.h" #include "llvm/Support/FileSystem.h" @@ -2132,7 +2133,7 @@ CompilerInstance::lookupMissingImports(StringRef Name, return false; } -void CompilerInstance::resetAndLeakSema() { BuryPointer(takeSema()); } +void CompilerInstance::resetAndLeakSema() { llvm::BuryPointer(takeSema()); } void CompilerInstance::setExternalSemaSource( IntrusiveRefCntPtr<ExternalSemaSource> ESS) { |