summaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Function.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/ByteCode/Function.h')
-rw-r--r--clang/lib/AST/ByteCode/Function.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/AST/ByteCode/Function.h b/clang/lib/AST/ByteCode/Function.h
index 8b577858474a..de88f3ded34d 100644
--- a/clang/lib/AST/ByteCode/Function.h
+++ b/clang/lib/AST/ByteCode/Function.h
@@ -150,12 +150,13 @@ public:
/// Returns the source information at a given PC.
SourceInfo getSource(CodePtr PC) const;
- /// Checks if the function is valid to call in constexpr.
- bool isConstexpr() const { return IsValid || isLambdaStaticInvoker(); }
+ /// Checks if the function is valid to call.
+ bool isValid() const { return IsValid || isLambdaStaticInvoker(); }
/// Checks if the function is virtual.
bool isVirtual() const { return Virtual; };
bool isImmediate() const { return Immediate; }
+ bool isConstexpr() const { return Constexpr; }
/// Checks if the function is a constructor.
bool isConstructor() const { return Kind == FunctionKind::Ctor; }
@@ -303,6 +304,8 @@ private:
unsigned Virtual : 1;
LLVM_PREFERRED_TYPE(bool)
unsigned Immediate : 1;
+ LLVM_PREFERRED_TYPE(bool)
+ unsigned Constexpr : 1;
public:
/// Dumps the disassembled bytecode to \c llvm::errs().