aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/Interp/Context.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/Interp/Context.h')
-rw-r--r--clang/lib/AST/Interp/Context.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/AST/Interp/Context.h b/clang/lib/AST/Interp/Context.h
index 0627d9fb14f5..e49422e64b87 100644
--- a/clang/lib/AST/Interp/Context.h
+++ b/clang/lib/AST/Interp/Context.h
@@ -18,7 +18,6 @@
#include "InterpStack.h"
#include "clang/AST/APValue.h"
-#include "llvm/ADT/PointerIntPair.h"
namespace clang {
class ASTContext;
@@ -33,7 +32,7 @@ class State;
enum PrimType : unsigned;
/// Holds all information required to evaluate constexpr code in a module.
-class Context {
+class Context final {
public:
/// Initialises the constexpr VM.
Context(ASTContext &Ctx);
@@ -60,7 +59,7 @@ public:
unsigned getCharBit() const;
/// Classifies an expression.
- llvm::Optional<PrimType> classify(QualType T);
+ std::optional<PrimType> classify(QualType T) const;
private:
/// Runs a function.
@@ -69,7 +68,6 @@ private:
/// Checks a result from the interpreter.
bool Check(State &Parent, llvm::Expected<bool> &&R);
-private:
/// Current compilation context.
ASTContext &Ctx;
/// Interpreter stack, shared across invocations.