Skip to content

Commit

Permalink
[compiler-rt][iwyu] explicitly includes <new> in xray_utils.cpp
Browse files Browse the repository at this point in the history
Compiling compiler-rt with Clang modules and libc++ revealed that the
global `operator new` is being called without including `<new>`.

Differential Revision: https://reviews.llvm.org/D105401
  • Loading branch information
cjdb committed Jul 5, 2021
1 parent 9964b0e commit 873e8b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler-rt/lib/xray/xray_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <errno.h>
#include <fcntl.h>
#include <iterator>
#include <new>
#include <stdlib.h>
#include <sys/types.h>
#include <tuple>
Expand Down

0 comments on commit 873e8b9

Please sign in to comment.