diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2011-11-08 18:21:06 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2011-11-08 18:21:06 +0000 |
commit | d9d137e6bc54bad6a7aa64b667aea22230e8264b (patch) | |
tree | 3cd91fd62d30742339a7f906fe6a9faff3c0cc35 /lib/AST/Decl.cpp | |
parent | c44bc2d32f81d11b4c0e46c932ba42e673b50a49 (diff) |
From Vassil Vassilev: add checks for removing Decls for more use cases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 95d52cb0fa..c766577ab0 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -1622,7 +1622,7 @@ FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { FunTmpl->setPreviousDeclaration(PrevFunTmpl); } - if (PrevDecl->IsInline) + if (PrevDecl && PrevDecl->IsInline) IsInline = true; } |