add another const
authorChris Lattner <sabre@nondot.org>
Sat, 8 Aug 2009 19:16:05 +0000 (19:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 8 Aug 2009 19:16:05 +0000 (19:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78487 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index 2eb5a4b27ba28c8678a91cce46f7512bcebef21c..cd95920702e8d6f560a1f6711e3d15e61d64ff96 100644 (file)
@@ -859,7 +859,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
 
   // Emit code to search the table.
   OS << "  // Search the table.\n";
-  OS << "  for (MatchEntry *it = MatchTable, "
+  OS << "  for (const MatchEntry *it = MatchTable, "
      << "*ie = MatchTable + " << Info.Instructions.size()
      << "; it != ie; ++it) {\n";
   for (unsigned i = 0; i != MaxNumOperands; ++i) {