Closed
Description
Static analyser cppcheck says:
llvm/lib/Support/GraphWriter.cpp:118:7: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr]
Source code is
N = N.substr(0, std::minstd::size_t(N.size(), 140));