diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-12-25 15:43:36 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-12-25 15:43:36 +0000 |
commit | d20ef75b91510c25a80aadaaae4e679dbf68270b (patch) | |
tree | c5595ed999f878bb4ef9e4d37f6a07e65ea56bb6 /clang/lib/AST/ASTContext.cpp | |
parent | 6ce6d268a669e39c3248b3416d9394449c0cad3f (diff) | |
download | bcm5719-llvm-d20ef75b91510c25a80aadaaae4e679dbf68270b.tar.gz bcm5719-llvm-d20ef75b91510c25a80aadaaae4e679dbf68270b.zip |
Remove some dead variables clang-analyzer found.
llvm-svn: 92162
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index bba169938b5..13da4b8b130 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -1065,9 +1065,7 @@ ASTContext::getObjCLayout(const ObjCInterfaceDecl *D, // Add in synthesized ivar count if laying out an implementation. if (Impl) { - unsigned FieldCount = D->ivar_size(); unsigned SynthCount = CountSynthesizedIvars(D); - FieldCount += SynthCount; // If there aren't any sythesized ivars then reuse the interface // entry. Note we can't cache this because we simply free all // entries later; however we shouldn't look up implementations |