aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/DSGraph.h4
-rw-r--r--include/llvm/Analysis/DataStructure/DSGraph.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h
index f07b69e4ce..f1b01e7438 100644
--- a/include/llvm/Analysis/DSGraph.h
+++ b/include/llvm/Analysis/DSGraph.h
@@ -409,8 +409,6 @@ public:
}
bool operator<(const DSCallSite &CS) const {
- if (Inst < CS.Inst) return true;
- if (Inst > CS.Inst) return false;
if (RetVal < CS.RetVal) return true;
if (RetVal > CS.RetVal) return false;
if (Callee < CS.Callee) return true;
@@ -419,7 +417,7 @@ public:
}
bool operator==(const DSCallSite &CS) const {
- return Inst == CS.Inst && RetVal == CS.RetVal && Callee == CS.Callee &&
+ return RetVal == CS.RetVal && Callee == CS.Callee &&
CallArgs == CS.CallArgs;
}
};
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h
index f07b69e4ce..f1b01e7438 100644
--- a/include/llvm/Analysis/DataStructure/DSGraph.h
+++ b/include/llvm/Analysis/DataStructure/DSGraph.h
@@ -409,8 +409,6 @@ public:
}
bool operator<(const DSCallSite &CS) const {
- if (Inst < CS.Inst) return true;
- if (Inst > CS.Inst) return false;
if (RetVal < CS.RetVal) return true;
if (RetVal > CS.RetVal) return false;
if (Callee < CS.Callee) return true;
@@ -419,7 +417,7 @@ public:
}
bool operator==(const DSCallSite &CS) const {
- return Inst == CS.Inst && RetVal == CS.RetVal && Callee == CS.Callee &&
+ return RetVal == CS.RetVal && Callee == CS.Callee &&
CallArgs == CS.CallArgs;
}
};