diff options
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
| -rw-r--r-- | llvm/lib/IR/LLVMContextImpl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp index 06b3a3afef9d..d7aaf0008564 100644 --- a/llvm/lib/IR/LLVMContextImpl.cpp +++ b/llvm/lib/IR/LLVMContextImpl.cpp @@ -27,7 +27,6 @@ #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> @@ -241,7 +240,7 @@ void LLVMContextImpl::getSyncScopeNames( /// singleton OptBisect if not explicitly set. OptPassGate &LLVMContextImpl::getOptPassGate() const { if (!OPG) - OPG = &(*OptBisector); + OPG = &getOptBisector(); return *OPG; } @@ -260,7 +259,7 @@ bool LLVMContextImpl::getOpaquePointers() { } void LLVMContextImpl::setOpaquePointers(bool OP) { - assert((!OpaquePointers || OpaquePointers.getValue() == OP) && + assert((!OpaquePointers || OpaquePointers.value() == OP) && "Cannot change opaque pointers mode once set"); OpaquePointers = OP; } |
