[llvm] r337317 - Add missing include.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 17 12:48:46 PDT 2018
Author: zturner
Date: Tue Jul 17 12:48:46 2018
New Revision: 337317
URL: http://llvm.org/viewvc/llvm-project?rev=337317&view=rev
Log:
Add missing include.
Modified:
llvm/trunk/lib/Demangle/StringView.h
Modified: llvm/trunk/lib/Demangle/StringView.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Demangle/StringView.h?rev=337317&r1=337316&r2=337317&view=diff
==============================================================================
--- llvm/trunk/lib/Demangle/StringView.h (original)
+++ llvm/trunk/lib/Demangle/StringView.h Tue Jul 17 12:48:46 2018
@@ -15,6 +15,7 @@
#include <algorithm>
#include <cassert>
+#include <cstring>
class StringView {
const char *First;
@@ -27,7 +28,7 @@ public:
: First(First_), Last(Last_) {}
StringView(const char *First_, size_t Len)
: First(First_), Last(First_ + Len) {}
- StringView(const char *Str) : First(Str), Last(Str + strlen(Str)) {}
+ StringView(const char *Str) : First(Str), Last(Str + std::strlen(Str)) {}
StringView() : First(nullptr), Last(nullptr) {}
StringView substr(size_t From) const {
More information about the llvm-commits
mailing list