Constify.

llvm-svn: 137489
This commit is contained in:
Devang Patel 2011-08-12 18:18:02 +00:00
parent 72f9fbf34e
commit b79ed42390

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())