diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 79384f98049..d12c4dd44f5 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(C->use_back())) { - if (!removeDeadConstantUsers(C)) + if (Constant *CU = dyn_cast(C->use_back())) { + if (!removeDeadConstantUsers(CU)) return false; // Constant wasn't dead. } else { return false; // Nonconstant user of the global.