mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Changes to fix up the inst_iterator to pass to boost iterator checks. This
patch was graciously contributed by Vladimir Prus. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -49,7 +49,10 @@ Pass *llvm::createConstantPropagationPass() {
|
||||
|
||||
bool ConstantPropagation::runOnFunction(Function &F) {
|
||||
// Initialize the worklist to all of the instructions ready to process...
|
||||
std::set<Instruction*> WorkList(inst_begin(F), inst_end(F));
|
||||
std::set<Instruction*> WorkList;
|
||||
for(inst_iterator i = inst_begin(F), e = inst_end(F); i != e; ++i) {
|
||||
WorkList.insert(&*i);
|
||||
}
|
||||
bool Changed = false;
|
||||
|
||||
while (!WorkList.empty()) {
|
||||
|
Reference in New Issue
Block a user