diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-17 07:02:32 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-17 07:02:32 +0000 |
commit | f4a03cc2b022fab0ffac6c65449555c52036dece (patch) | |
tree | 13f71285731ff3a69964e65bd4b15fbcb07a0dbc /lib/AST/Decl.cpp | |
parent | c6daf0b29d6c48a99cb1ad707973a7e6dfcafd58 (diff) |
De-virtualize Decl::isOutOfLine().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 9aeb04fa44..fded8ff38c 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -1159,7 +1159,7 @@ const Expr *VarDecl::getAnyInitializer(const VarDecl *&D) const { } bool VarDecl::isOutOfLine() const { - if (Decl::isOutOfLine()) + if (getLexicalDeclContext() != getDeclContext()) return true; if (!isStaticDataMember()) @@ -1883,7 +1883,7 @@ SourceLocation FunctionDecl::getPointOfInstantiation() const { } bool FunctionDecl::isOutOfLine() const { - if (Decl::isOutOfLine()) + if (getLexicalDeclContext() != getDeclContext()) return true; // If this function was instantiated from a member function of a |