diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-06 01:52:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-06 01:52:22 +0000 |
commit | f1ab4f18aad3950d0b9ff1273a276bb8d195d2d6 (patch) | |
tree | 0f9099ca94a5389133600fb221a25f47f2fce894 /utils/TableGen/DAGISelEmitter.cpp | |
parent | 6cc654b27a9d392ac7660afcb23e3c8136e9ab28 (diff) | |
download | llvm-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.cpp | 2 |
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) |