]> granicus.if.org Git - clang/commitdiff
Constify UsingPackDecl::getInstantiatedFromUsingDecl(), NFC.
authorYaron Keren <yaron.keren@gmail.com>
Fri, 6 Jan 2017 11:15:57 +0000 (11:15 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Fri, 6 Jan 2017 11:15:57 +0000 (11:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291230 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclCXX.h

index 06ecd3c37342fd295401096be5d9f0ff62e219ea..0ca08db16299f743cdfb067e09554d4779d38ffa 100644 (file)
@@ -3181,7 +3181,7 @@ public:
   /// Get the using declaration from which this was instantiated. This will
   /// always be an UnresolvedUsingValueDecl or an UnresolvedUsingTypenameDecl
   /// that is a pack expansion.
-  NamedDecl *getInstantiatedFromUsingDecl() { return InstantiatedFrom; }
+  NamedDecl *getInstantiatedFromUsingDecl() const { return InstantiatedFrom; }
 
   /// Get the set of using declarations that this pack expanded into. Note that
   /// some of these may still be unresolved.