Skip to content

Commit dfa3ead

Browse files
[Analysis] Drop unnecessary const from return types (NFC)
Identified with readability-const-return-type.
1 parent d3c3045 commit dfa3ead

File tree

1 file changed

+3
-3
lines changed
  • llvm/include/llvm/Analysis

1 file changed

+3
-3
lines changed

llvm/include/llvm/Analysis/DDG.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ template <typename NodeType> class DependenceGraphInfo {
293293
/// Return a string representing the type of dependence that the dependence
294294
/// analysis identified between the two given nodes. This function assumes
295295
/// that there is a memory dependence between the given two nodes.
296-
const std::string getDependenceString(const NodeType &Src,
297-
const NodeType &Dst) const;
296+
std::string getDependenceString(const NodeType &Src,
297+
const NodeType &Dst) const;
298298

299299
protected:
300300
// Name of the graph.
@@ -470,7 +470,7 @@ bool DependenceGraphInfo<NodeType>::getDependencies(
470470
}
471471

472472
template <typename NodeType>
473-
const std::string
473+
std::string
474474
DependenceGraphInfo<NodeType>::getDependenceString(const NodeType &Src,
475475
const NodeType &Dst) const {
476476
std::string Str;

0 commit comments

Comments
 (0)