Constify.
authorDevang Patel <dpatel@apple.com>
Fri, 12 Aug 2011 18:18:02 +0000 (18:18 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 12 Aug 2011 18:18:02 +0000 (18:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137489 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LexicalScopes.h

index 709681b982173b4ce86bca9a3043b6f33594a477..0271c5d852224d5a793e557df7be854448ab866b 100644 (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())