summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-06 01:52:22 +0000
committerChris Lattner <sabre@nondot.org>2008-01-06 01:52:22 +0000
commitd5326def4a375de166065066e710a62b927164e2 (patch)
treea3de301a5377ccf76f4888bd5e206867f528f20b /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parentea2d52d867d9ebdd88d61d5d3f6efcaf72bea0fe (diff)
downloadbcm5719-llvm-d5326def4a375de166065066e710a62b927164e2.tar.gz
bcm5719-llvm-d5326def4a375de166065066e710a62b927164e2.zip
improve const correctness.
llvm-svn: 45646
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index 670a138cb54..7e2830782f1 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -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
OpenPOWER on IntegriCloud