forked from OSchip/llvm-project
[clang][Interp][NFC] Context::classify() can be const
This commit is contained in:
parent
3a7d476087
commit
0da7e409e0
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue