Skip to content

Commit 0da7e40

Browse files
committed
[clang][Interp][NFC] Context::classify() can be const
1 parent 3a7d476 commit 0da7e40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/AST/Interp/Context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ bool Context::evaluateAsInitializer(State &Parent, const VarDecl *VD,
5959

6060
const LangOptions &Context::getLangOpts() const { return Ctx.getLangOpts(); }
6161

62-
llvm::Optional<PrimType> Context::classify(QualType T) {
62+
llvm::Optional<PrimType> Context::classify(QualType T) const {
6363
if (T->isReferenceType() || T->isPointerType()) {
6464
return PT_Ptr;
6565
}

clang/lib/AST/Interp/Context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Context {
6060
unsigned getCharBit() const;
6161

6262
/// Classifies an expression.
63-
llvm::Optional<PrimType> classify(QualType T);
63+
llvm::Optional<PrimType> classify(QualType T) const;
6464

6565
private:
6666
/// Runs a function.

0 commit comments

Comments
 (0)