[PATCH] D47960: [asan, myriad] Support environment variables
Walter Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 12 11:38:35 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL334522: [asan, myriad] Support environment variables (authored by waltl, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D47960?vs=150892&id=150987#toc
Repository:
rL LLVM
https://reviews.llvm.org/D47960
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_rtems.cc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_rtems.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_rtems.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_rtems.cc
@@ -239,8 +239,11 @@
return true;
}
-char **GetArgv() { return NULL; }
-const char *GetEnv(const char *name) { return NULL; }
+char **GetArgv() { return nullptr; }
+
+const char *GetEnv(const char *name) {
+ return getenv(name);
+}
uptr ReadBinaryName(/*out*/char *buf, uptr buf_len) {
internal_strncpy(buf, "StubBinaryName", buf_len);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47960.150987.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180612/2202e164/attachment.bin>
More information about the llvm-commits
mailing list