summaryrefslogtreecommitdiff
path: root/utils/TableGen/DAGISelEmitter.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
commitf1ab4f18aad3950d0b9ff1273a276bb8d195d2d6 (patch)
tree0f9099ca94a5389133600fb221a25f47f2fce894 /utils/TableGen/DAGISelEmitter.cpp
parent6cc654b27a9d392ac7660afcb23e3c8136e9ab28 (diff)
downloadllvm-f1ab4f18aad3950d0b9ff1273a276bb8d195d2d6.tar.gz
llvm-f1ab4f18aad3950d0b9ff1273a276bb8d195d2d6.tar.bz2
llvm-f1ab4f18aad3950d0b9ff1273a276bb8d195d2d6.tar.xz
improve const correctness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.cpp')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index b0eada86b5..bd8d21058d 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -827,7 +827,7 @@ public:
const CodeGenTarget &CGT = CGP.getTargetInfo();
CodeGenInstruction &II = CGT.getInstruction(Op->getName());
const DAGInstruction &Inst = CGP.getInstruction(Op);
- TreePattern *InstPat = Inst.getPattern();
+ const TreePattern *InstPat = Inst.getPattern();
// FIXME: Assume actual pattern comes before "implicit".
TreePatternNode *InstPatNode =
isRoot ? (InstPat ? InstPat->getTree(0) : Pattern)