improve const correctness.
[oota-llvm.git] / utils / TableGen / CodeGenDAGPatterns.cpp
index 670a138cb542b3a1c6fbf41cfc98a8672bfdc8f4..7e2830782f19569da668526b75dac6c64e788dae 100644 (file)
@@ -1661,7 +1661,7 @@ void CodeGenDAGPatterns::ParseInstructions() {
   for (std::map<Record*, DAGInstruction>::iterator II = Instructions.begin(),
        E = Instructions.end(); II != E; ++II) {
     DAGInstruction &TheInst = II->second;
-    TreePattern *I = TheInst.getPattern();
+    const TreePattern *I = TheInst.getPattern();
     if (I == 0) continue;  // No pattern.
 
     // FIXME: Assume only the first tree is the pattern. The others are clobber