[PATCH] D46712: Port msan_test.cc to NetBSD

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 17 13:49:18 PDT 2018


vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/msan/tests/msan_test.cc:3081
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 static void GetProgramPath(char *buf, size_t sz) {
+#if defined(__FreeBSD__)
----------------
Could please make it:

```
#if defined(__FreeBSD__) 
// entire function
#elif defined(__NetBSD__)
// entire function
#elif defined(__GLIBC__)
// entire function
#else
# error "TODO: port this"
#endif
```


Repository:
  rL LLVM

https://reviews.llvm.org/D46712





More information about the llvm-commits mailing list