[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

Chris Lattner lattner at cs.uiuc.edu
Fri Mar 3 23:53:29 PST 2006



Changes in directory llvm/lib/AsmParser:

llvmAsmParser.y updated: 1.249 -> 1.250
---
Log message:

Don't use invalidated iterators!


---
Diffs of the changes:  (+3 -3)

 llvmAsmParser.y |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.249 llvm/lib/AsmParser/llvmAsmParser.y:1.250
--- llvm/lib/AsmParser/llvmAsmParser.y:1.249	Wed Jan 25 16:26:43 2006
+++ llvm/lib/AsmParser/llvmAsmParser.y	Sat Mar  4 01:53:16 2006
@@ -107,9 +107,9 @@
     }
 
     // Look for intrinsic functions and CallInst that need to be upgraded
-    for (Module::iterator FI = CurrentModule->begin(),FE = CurrentModule->end();
-         FI != FE; ++FI)
-      UpgradeCallsToIntrinsic(FI);
+    for (Module::iterator FI = CurrentModule->begin(),
+         FE = CurrentModule->end(); FI != FE; )
+      UpgradeCallsToIntrinsic(FI++);
 
     Values.clear();         // Clear out function local definitions
     Types.clear();






More information about the llvm-commits mailing list