diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2022-07-10 09:54:30 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2022-07-10 09:54:30 +0200 |
commit | e9ce1a588030d8d4004f5d7e443afe46245e9a92 (patch) | |
tree | a70363c9aa204477b48fbf1b0cf9a0adf445ec2e /llvm/lib/IR/LLVMContextImpl.cpp | |
parent | e6f1f062457c928c18a88c612f39d9e168f65a85 (diff) | |
download | llvm-e9ce1a588030d8d4004f5d7e443afe46245e9a92.zip llvm-e9ce1a588030d8d4004f5d7e443afe46245e9a92.tar.gz llvm-e9ce1a588030d8d4004f5d7e443afe46245e9a92.tar.bz2 |
Revert "ManagedStatic: remove many straightforward uses in llvm"
This reverts commit e6f1f062457c928c18a88c612f39d9e168f65a85.
Reverting due to a failure on the fuchsia-x86_64-linux buildbot.
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r-- | llvm/lib/IR/LLVMContextImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp index de970dd..06b3a3a 100644 --- a/llvm/lib/IR/LLVMContextImpl.cpp +++ b/llvm/lib/IR/LLVMContextImpl.cpp @@ -27,6 +27,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/TypeSize.h" #include <cassert> #include <utility> @@ -240,7 +241,7 @@ void LLVMContextImpl::getSyncScopeNames( /// singleton OptBisect if not explicitly set. OptPassGate &LLVMContextImpl::getOptPassGate() const { if (!OPG) - OPG = &getOptBisector(); + OPG = &(*OptBisector); return *OPG; } |