commit | 740256bafbba6c5b5cb95a5c5bd7db161f3b2833 | [log] [tgz] |
---|---|---|
author | Mike Stump <mrs@apple.com> | Tue Sep 29 00:50:50 2009 +0000 |
committer | Mike Stump <mrs@apple.com> | Tue Sep 29 00:50:50 2009 +0000 |
tree | 9f040e40577dcb0e432cf0c19afd316a528c0695 | |
parent | f8add9b5f51540e9e734e6a82c5d54c362be822a [diff] [blame] |
Fix http://llvm.org/PR5090. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83035 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 25d3d44..24dd3e5 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp
@@ -653,6 +653,10 @@ } } +const FunctionDecl *FunctionDecl::getCanonicalDecl() const { + return getFirstDeclaration(); +} + FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDeclaration(); }