improve const correctness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2008-01-06 01:52:22 +00:00
parent 6cc654b27a
commit f1ab4f18aa
3 changed files with 3 additions and 3 deletions

View 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