[compiler-rt] [msan] Change zero_alloc.cpp testcase to use stdlib.h (PR #156491)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 2 09:52:30 PDT 2025
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/156491
Avoid build breakage of Mac
>From 484be7e81d59e0b1df5ecc2dbff7dad65fc51419 Mon Sep 17 00:00:00 2001
From: Thurston Dang <thurston at google.com>
Date: Tue, 2 Sep 2025 16:49:56 +0000
Subject: [PATCH] [msan] Change zero_alloc.cpp testcase to use stdlib.h
Avoid build breakage of Mac
---
compiler-rt/test/msan/zero_alloc.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/test/msan/zero_alloc.cpp b/compiler-rt/test/msan/zero_alloc.cpp
index 6e38ce4c0a8f8..1451e1e89e9fb 100644
--- a/compiler-rt/test/msan/zero_alloc.cpp
+++ b/compiler-rt/test/msan/zero_alloc.cpp
@@ -1,7 +1,7 @@
// RUN: %clang_msan -Wno-alloc-size -fsanitize-recover=memory %s -o %t && not %run %t 2>&1 | FileCheck %s
-#include <malloc.h>
#include <stdio.h>
+#include <stdlib.h>
int main(int argc, char **argv) {
{
More information about the llvm-commits
mailing list