diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-22 17:08:30 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-22 17:08:30 +0000 |
commit | e0d2066ab8812cbaa16d79af5f2c9fb6bd52d2e2 (patch) | |
tree | b8b47f8c4d8865d261e4b8a44b27f4a0e8258fb5 /lib/Serialization/ASTCommon.h | |
parent | 3a344f9fc7a62ad0a8d26b2a1ccf5e4989720d0c (diff) |
Make getDefinitiveDeclContext() actually return a DeclContext, as one
would expect, and clean up the return/break inconsistencies. Thanks,
Sebastian!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTCommon.h')
-rw-r--r-- | lib/Serialization/ASTCommon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Serialization/ASTCommon.h b/lib/Serialization/ASTCommon.h index d930854231..76ef904046 100644 --- a/lib/Serialization/ASTCommon.h +++ b/lib/Serialization/ASTCommon.h @@ -68,7 +68,7 @@ unsigned ComputeHash(Selector Sel); /// single place in the source code, so they have definitive declarations /// associated with them. C++ namespaces, on the other hand, can have /// multiple definitions. -const Decl *getDefinitiveDeclContext(const DeclContext *DC); +const DeclContext *getDefinitiveDeclContext(const DeclContext *DC); /// \brief Determine whether the given declaration kind is redeclarable. bool isRedeclarableDeclKind(unsigned Kind); |