From: Steve Naroff Date: Thu, 2 Aug 2007 00:19:14 +0000 (+0000) Subject: Add a couple const modifiers. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f28fe8e00ec4fac17977374d8da491f873a3b05;p=clang Add a couple const modifiers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40708 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index ada076dc74..32f4053c24 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -735,8 +735,8 @@ public: Expr(TypesCompatibleExprClass, ReturnType), Type1(t1), Type2(t2), BuiltinLoc(BLoc), RParenLoc(RP) {} - QualType getArgType1() { return Type1; } - QualType getArgType2() { return Type2; } + QualType getArgType1() const { return Type1; } + QualType getArgType2() const { return Type2; } int typesAreCompatible() const { return Type::typesAreCompatible(Type1,Type2); }