diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-21 17:47:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-21 17:47:50 +0000 |
commit | a81e1cab041e005439c70061842a9d8433d72111 (patch) | |
tree | b8d3416dff13ffe276200b4d08c2d16c7902567b /llvm/lib/CodeGen/PreAllocSplitting.cpp | |
parent | b4e16872704f6d4b1d80e64f33d499e00aa7e792 (diff) | |
download | bcm5719-llvm-a81e1cab041e005439c70061842a9d8433d72111.tar.gz bcm5719-llvm-a81e1cab041e005439c70061842a9d8433d72111.zip |
constify accessor.
llvm-svn: 104325
Diffstat (limited to 'llvm/lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PreAllocSplitting.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PreAllocSplitting.cpp b/llvm/lib/CodeGen/PreAllocSplitting.cpp index eb19be12cee..997e82f11db 100644 --- a/llvm/lib/CodeGen/PreAllocSplitting.cpp +++ b/llvm/lib/CodeGen/PreAllocSplitting.cpp @@ -1154,7 +1154,7 @@ PreAllocSplitting::SplitRegLiveIntervals(const TargetRegisterClass **RCs, // codegen is not modelling. Ignore these barriers for now. if (!TII->isSafeToMoveRegClassDefs(*RC)) continue; - std::vector<unsigned> &VRs = MRI->getRegClassVirtRegs(*RC); + const std::vector<unsigned> &VRs = MRI->getRegClassVirtRegs(*RC); for (unsigned i = 0, e = VRs.size(); i != e; ++i) { unsigned Reg = VRs[i]; if (!LIs->hasInterval(Reg)) |