[lld] r341672 - MachO: Change getString16() back to inline function
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 7 08:51:52 PDT 2018
Author: tstellar
Date: Fri Sep 7 08:51:52 2018
New Revision: 341672
URL: http://llvm.org/viewvc/llvm-project?rev=341672&view=rev
Log:
MachO: Change getString16() back to inline function
This was accidentally changed in r341670.
Modified:
lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
Modified: lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h?rev=341672&r1=341671&r2=341672&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h Fri Sep 7 08:51:52 2018
@@ -185,7 +185,7 @@ packRelocation(const Relocation &r, bool
return result;
}
-static StringRef getString16(const char s[16]) {
+inline StringRef getString16(const char s[16]) {
// The StringRef(const char *) constructor passes the const char * to
// strlen(), so we can't use this constructor here, because if there is no
// null terminator in s, then strlen() will read past the end of the array.
More information about the llvm-commits
mailing list