summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-06-18 10:34:07 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-06-18 10:34:07 +0000
commit8a9cc4fe281719f020b3caf20f43be3ca4e5f946 (patch)
tree7455a467bc429e3a9cd8b1b84d452aad38e7a4a2 /clang/lib/CodeGen/CGExpr.cpp
parentdd19c0114de5024e36e466b69d98a3762ea862a9 (diff)
downloadbcm5719-llvm-8a9cc4fe281719f020b3caf20f43be3ca4e5f946.tar.gz
bcm5719-llvm-8a9cc4fe281719f020b3caf20f43be3ca4e5f946.zip
Remove dead variables.
llvm-svn: 133346
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 0e68c3e2f34..20ccdb7f9cb 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -2111,7 +2111,6 @@ RValue CodeGenFunction::EmitCallExpr(const CallExpr *E,
// Automatic Reference Counting:
// If the pseudo-expression names a retainable object with weak or
// strong lifetime, the object shall be released.
- bool isNonGC = false;
Expr *BaseExpr = PseudoDtor->getBase();
llvm::Value *BaseValue = NULL;
Qualifiers BaseQuals;
@@ -2123,8 +2122,6 @@ RValue CodeGenFunction::EmitCallExpr(const CallExpr *E,
BaseQuals = PTy->getPointeeType().getQualifiers();
} else {
LValue BaseLV = EmitLValue(BaseExpr);
- if (BaseLV.isNonGC())
- isNonGC = true;
BaseValue = BaseLV.getAddress();
QualType BaseTy = BaseExpr->getType();
BaseQuals = BaseTy.getQualifiers();
OpenPOWER on IntegriCloud