[clang] Support MemProf on darwin (PR #69640)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 26 20:17:55 PDT 2023


================
@@ -78,7 +78,11 @@ static int GetCpuId(void) {
   // will seg fault as the address of __vdso_getcpu will be null.
   if (!memprof_inited)
     return -1;
+#if SANITIZER_APPLE
+  return 0;
----------------
teresajohnson wrote:

If there is a way to do this on Apple then add a FIXME?

https://github.com/llvm/llvm-project/pull/69640


More information about the cfe-commits mailing list