[PATCH] D135072: Fix llvm build on MacOS

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 3 07:52:01 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe35182108809: Fix compilation of CodeLayout.cpp for MacOS (authored by yrouban).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135072/new/

https://reviews.llvm.org/D135072

Files:
  llvm/lib/Transforms/Utils/CodeLayout.cpp


Index: llvm/lib/Transforms/Utils/CodeLayout.cpp
===================================================================
--- llvm/lib/Transforms/Utils/CodeLayout.cpp
+++ llvm/lib/Transforms/Utils/CodeLayout.cpp
@@ -42,6 +42,8 @@
 #include "llvm/Transforms/Utils/CodeLayout.h"
 #include "llvm/Support/CommandLine.h"
 
+#include <cmath>
+
 using namespace llvm;
 #define DEBUG_TYPE "code-layout"
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135072.464685.patch
Type: text/x-patch
Size: 391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221003/eae53c54/attachment.bin>


More information about the llvm-commits mailing list