mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +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,
|
void CallGraphSCCPass::assignPassManager(PMStack &PMS,
|
||||||
PassManagerType PreferredType) {
|
PassManagerType PreferredType) {
|
||||||
// Find CGPassManager
|
// Find CGPassManager
|
||||||
while (!PMS.empty()) {
|
while (!PMS.empty() &&
|
||||||
if (PMS.top()->getPassManagerType() > PMT_CallGraphPassManager)
|
PMS.top()->getPassManagerType() > PMT_CallGraphPassManager)
|
||||||
PMS.pop();
|
PMS.pop();
|
||||||
else;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
CGPassManager *CGP = dynamic_cast<CGPassManager *>(PMS.top());
|
CGPassManager *CGP = dynamic_cast<CGPassManager *>(PMS.top());
|
||||||
|
|
||||||
|
@ -261,12 +261,9 @@ bool LPPassManager::runOnFunction(Function &F) {
|
|||||||
void LoopPass::preparePassManager(PMStack &PMS) {
|
void LoopPass::preparePassManager(PMStack &PMS) {
|
||||||
|
|
||||||
// Find LPPassManager
|
// Find LPPassManager
|
||||||
while (!PMS.empty()) {
|
while (!PMS.empty() &&
|
||||||
if (PMS.top()->getPassManagerType() > PMT_LoopPassManager)
|
PMS.top()->getPassManagerType() > PMT_LoopPassManager)
|
||||||
PMS.pop();
|
PMS.pop();
|
||||||
else;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
LPPassManager *LPPM = dynamic_cast<LPPassManager *>(PMS.top());
|
LPPassManager *LPPM = dynamic_cast<LPPassManager *>(PMS.top());
|
||||||
|
|
||||||
@ -281,12 +278,9 @@ void LoopPass::preparePassManager(PMStack &PMS) {
|
|||||||
void LoopPass::assignPassManager(PMStack &PMS,
|
void LoopPass::assignPassManager(PMStack &PMS,
|
||||||
PassManagerType PreferredType) {
|
PassManagerType PreferredType) {
|
||||||
// Find LPPassManager
|
// Find LPPassManager
|
||||||
while (!PMS.empty()) {
|
while (!PMS.empty() &&
|
||||||
if (PMS.top()->getPassManagerType() > PMT_LoopPassManager)
|
PMS.top()->getPassManagerType() > PMT_LoopPassManager)
|
||||||
PMS.pop();
|
PMS.pop();
|
||||||
else;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
LPPassManager *LPPM = dynamic_cast<LPPassManager *>(PMS.top());
|
LPPassManager *LPPM = dynamic_cast<LPPassManager *>(PMS.top());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user