aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index 79384f9804..d12c4dd44f 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -84,8 +84,8 @@ void Argument::setParent(Function *parent) {
static bool removeDeadConstantUsers(Constant *C) {
while (!C->use_empty()) {
- if (Constant *C = dyn_cast<Constant>(C->use_back())) {
- if (!removeDeadConstantUsers(C))
+ if (Constant *CU = dyn_cast<Constant>(C->use_back())) {
+ if (!removeDeadConstantUsers(CU))
return false; // Constant wasn't dead.
} else {
return false; // Nonconstant user of the global.