summaryrefslogtreecommitdiff
path: root/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-19 02:13:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-19 02:13:21 +0000
commit7693b32af6863c63fcaf4de087760740ee675f71 (patch)
tree3324954c2baebe335aa6f2075a774c81c57da8b8 /lib/Serialization/ASTWriter.cpp
parenta36ddbe8bf0c7269656f554288703afbb2b0a034 (diff)
downloadclang-7693b32af6863c63fcaf4de087760740ee675f71.tar.gz
clang-7693b32af6863c63fcaf4de087760740ee675f71.tar.bz2
clang-7693b32af6863c63fcaf4de087760740ee675f71.tar.xz
Add isFirstDecl to DecBase too and use it instead of getPreviousDecl() == 0.
Redeclarable already had a isFirstDecl, but it was missing from DeclBase. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriter.cpp')
-rw-r--r--lib/Serialization/ASTWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp
index d23267059c..3ee9830e7c 100644
--- a/lib/Serialization/ASTWriter.cpp
+++ b/lib/Serialization/ASTWriter.cpp
@@ -3531,7 +3531,7 @@ void ASTWriter::WriteRedeclarations() {
for (unsigned I = 0, N = Redeclarations.size(); I != N; ++I) {
Decl *First = Redeclarations[I];
- assert(First->getPreviousDecl() == 0 && "Not the first declaration?");
+ assert(First->isFirstDecl() && "Not the first declaration?");
Decl *MostRecent = First->getMostRecentDecl();