aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/InlineSpiller.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-10-10 21:28:52 +0000
committerMatthias Braun <matze@braunis.de>2013-10-10 21:28:52 +0000
commit5649e25ce86b9d89d228ae7c392413571b0f8c19 (patch)
tree5d52d34808f1ab241f9cdc53e4fe889d76a0f6cb /lib/CodeGen/InlineSpiller.cpp
parent87a86058fa0726328de42ace85b5532d18775646 (diff)
downloadexternal_llvm-5649e25ce86b9d89d228ae7c392413571b0f8c19.tar.gz
external_llvm-5649e25ce86b9d89d228ae7c392413571b0f8c19.tar.bz2
external_llvm-5649e25ce86b9d89d228ae7c392413571b0f8c19.zip
Pass LiveQueryResult by value
This makes the API a bit more natural to use and makes it easier to make LiveRanges implementation details private. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InlineSpiller.cpp')
-rw-r--r--lib/CodeGen/InlineSpiller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp
index 2ee67555a6..85bf4efa77 100644
--- a/lib/CodeGen/InlineSpiller.cpp
+++ b/lib/CodeGen/InlineSpiller.cpp
@@ -578,7 +578,7 @@ MachineInstr *InlineSpiller::traceSiblingValue(unsigned UseReg, VNInfo *UseVNI,
if (unsigned SrcReg = isFullCopyOf(MI, Reg)) {
if (isSibling(SrcReg)) {
LiveInterval &SrcLI = LIS.getInterval(SrcReg);
- LiveRangeQuery SrcQ(SrcLI, VNI->def);
+ LiveQueryResult SrcQ = SrcLI.Query(VNI->def);
assert(SrcQ.valueIn() && "Copy from non-existing value");
// Check if this COPY kills its source.
SVI->second.KillsSource = SrcQ.isKill();