mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
The second argument to RecursivelyDeleteTriviallyDeadInstructions has
a default value, and will hopefully be going away soon. llvm-svn: 70642
This commit is contained in:
parent
a79cce4aef
commit
7c5f68dd5c
@ -291,7 +291,7 @@ bool StripDebugInfo(Module &M) {
|
|||||||
if (Constant *C = dyn_cast<Constant>(Arg1))
|
if (Constant *C = dyn_cast<Constant>(Arg1))
|
||||||
DeadConstants.push_back(C);
|
DeadConstants.push_back(C);
|
||||||
else
|
else
|
||||||
RecursivelyDeleteTriviallyDeadInstructions(Arg1, NULL);
|
RecursivelyDeleteTriviallyDeadInstructions(Arg1);
|
||||||
}
|
}
|
||||||
if (Arg2->use_empty())
|
if (Arg2->use_empty())
|
||||||
if (Constant *C = dyn_cast<Constant>(Arg2))
|
if (Constant *C = dyn_cast<Constant>(Arg2))
|
||||||
@ -381,7 +381,7 @@ bool StripDebugDeclare::runOnModule(Module &M) {
|
|||||||
if (Constant *C = dyn_cast<Constant>(Arg1))
|
if (Constant *C = dyn_cast<Constant>(Arg1))
|
||||||
DeadConstants.push_back(C);
|
DeadConstants.push_back(C);
|
||||||
else
|
else
|
||||||
RecursivelyDeleteTriviallyDeadInstructions(Arg1, NULL);
|
RecursivelyDeleteTriviallyDeadInstructions(Arg1);
|
||||||
}
|
}
|
||||||
if (Arg2->use_empty())
|
if (Arg2->use_empty())
|
||||||
if (Constant *C = dyn_cast<Constant>(Arg2))
|
if (Constant *C = dyn_cast<Constant>(Arg2))
|
||||||
|
Loading…
Reference in New Issue
Block a user