aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-09-29 00:50:50 +0000
committerMike Stump <mrs@apple.com>2009-09-29 00:50:50 +0000
commit740256bafbba6c5b5cb95a5c5bd7db161f3b2833 (patch)
tree9f040e40577dcb0e432cf0c19afd316a528c0695 /lib/AST/Decl.cpp
parentf8add9b5f51540e9e734e6a82c5d54c362be822a (diff)
Fix http://llvm.org/PR5090.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r--lib/AST/Decl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp
index 25d3d44cc8..24dd3e5e3d 100644
--- a/lib/AST/Decl.cpp
+++ b/lib/AST/Decl.cpp
@@ -653,6 +653,10 @@ FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) {
}
}
+const FunctionDecl *FunctionDecl::getCanonicalDecl() const {
+ return getFirstDeclaration();
+}
+
FunctionDecl *FunctionDecl::getCanonicalDecl() {
return getFirstDeclaration();
}