mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 12:45:47 +00:00
Fix a really nasty logic error that VC noticed.
Reid, this might matter to you :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
268f2583b9
commit
88e2b780cb
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user