mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Replace mysterious code causing a g++-4.2 warning
with hopefully correct code that pleases g++-4.2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40051 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d572db21e
commit
20d824b7df
@ -153,12 +153,9 @@ bool CGPassManager::doFinalization(CallGraph &CG) {
|
||||
void CallGraphSCCPass::assignPassManager(PMStack &PMS,
|
||||
PassManagerType PreferredType) {
|
||||
// Find CGPassManager
|
||||
while (!PMS.empty()) {
|
||||
if (PMS.top()->getPassManagerType() > PMT_CallGraphPassManager)
|
||||
PMS.pop();
|
||||
else;
|
||||
break;
|
||||
}
|
||||
while (!PMS.empty() &&
|
||||
PMS.top()->getPassManagerType() > PMT_CallGraphPassManager)
|
||||
PMS.pop();
|
||||
|
||||
CGPassManager *CGP = dynamic_cast<CGPassManager *>(PMS.top());
|
||||
|
||||
|
@ -261,12 +261,9 @@ bool LPPassManager::runOnFunction(Function &F) {
|
||||
void LoopPass::preparePassManager(PMStack &PMS) {
|
||||
|
||||
// Find LPPassManager
|
||||
while (!PMS.empty()) {
|
||||
if (PMS.top()->getPassManagerType() > PMT_LoopPassManager)
|
||||
PMS.pop();
|
||||
else;
|
||||
break;
|
||||
}
|
||||
while (!PMS.empty() &&
|
||||
PMS.top()->getPassManagerType() > PMT_LoopPassManager)
|
||||
PMS.pop();
|
||||
|
||||
LPPassManager *LPPM = dynamic_cast<LPPassManager *>(PMS.top());
|
||||
|
||||
@ -281,12 +278,9 @@ void LoopPass::preparePassManager(PMStack &PMS) {
|
||||
void LoopPass::assignPassManager(PMStack &PMS,
|
||||
PassManagerType PreferredType) {
|
||||
// Find LPPassManager
|
||||
while (!PMS.empty()) {
|
||||
if (PMS.top()->getPassManagerType() > PMT_LoopPassManager)
|
||||
PMS.pop();
|
||||
else;
|
||||
break;
|
||||
}
|
||||
while (!PMS.empty() &&
|
||||
PMS.top()->getPassManagerType() > PMT_LoopPassManager)
|
||||
PMS.pop();
|
||||
|
||||
LPPassManager *LPPM = dynamic_cast<LPPassManager *>(PMS.top());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user