Constify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137489 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2011-08-12 18:18:02 +00:00
parent aa175c37d1
commit 92a36e6583

View File

@ -209,7 +209,7 @@ public:
}
/// dominates - Return true if current scope dominsates given lexical scope.
bool dominates(const LexicalScope *S) {
bool dominates(const LexicalScope *S) const {
if (S == this)
return true;
if (DFSIn < S->getDFSIn() && DFSOut > S->getDFSOut())