aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-04-25 00:42:50 +0000
committerAdrian Prantl <aprantl@apple.com>2014-04-25 00:42:50 +0000
commit6e5de2ea0672810a2d9578f17825002989fa1b1a (patch)
tree8780eeec2c7b863e866091a1d355694fdd3f20ff /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent3512190ab3b8acb3ca035073aefec25f0a23a046 (diff)
downloadllvm-6e5de2ea0672810a2d9578f17825002989fa1b1a.zip
llvm-6e5de2ea0672810a2d9578f17825002989fa1b1a.tar.gz
llvm-6e5de2ea0672810a2d9578f17825002989fa1b1a.tar.bz2
Revert "This reapplies r207130 with an additional testcase+and a missing check for"
Typo in testcase. llvm-svn: 207166
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 388f58f..dcd78a2 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -157,8 +157,8 @@ public:
UserValue *getNext() const { return next; }
/// match - Does this UserValue match the parameters?
- bool match(const MDNode *Var, unsigned Offset, bool indirect) const {
- return Var == variable && Offset == offset && indirect == IsIndirect;
+ bool match(const MDNode *Var, unsigned Offset) const {
+ return Var == variable && Offset == offset;
}
/// merge - Merge equivalence classes.
@@ -427,7 +427,7 @@ UserValue *LDVImpl::getUserValue(const MDNode *Var, unsigned Offset,
UserValue *UV = Leader->getLeader();
Leader = UV;
for (; UV; UV = UV->getNext())
- if (UV->match(Var, Offset, IsIndirect))
+ if (UV->match(Var, Offset))
return UV;
}