[clang][Interp][NFC] Context::classify() can be const

This commit is contained in:
Timm Bäder 2022-08-29 20:29:19 +02:00
parent 3a7d476087
commit 0da7e409e0
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ bool Context::evaluateAsInitializer(State &Parent, const VarDecl *VD,
const LangOptions &Context::getLangOpts() const { return Ctx.getLangOpts(); }
llvm::Optional<PrimType> Context::classify(QualType T) {
llvm::Optional<PrimType> Context::classify(QualType T) const {
if (T->isReferenceType() || T->isPointerType()) {
return PT_Ptr;
}

View File

@ -60,7 +60,7 @@ public:
unsigned getCharBit() const;
/// Classifies an expression.
llvm::Optional<PrimType> classify(QualType T);
llvm::Optional<PrimType> classify(QualType T) const;
private:
/// Runs a function.