Skip to content

Commit 2d5f857

Browse files
committed
[Bazel] Add include/llvm/Transforms/Utils/ModuleUtils.h to work around layer violation after D116542
There is a layer violation and can break clang -fmodule-name=X -fmodules-strict-decluse builds: * LLVMTransformUtils has `#include "llvm/Bitcode/BitcodeWriterPass.h"` * LLVMBitWriter depends on LLVMTransformUtils after D116542 Temporarily work around the issue.
1 parent 8a9e4f2 commit 2d5f857

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ cc_library(
904904
"include/llvm/Bitcode/BitcodeWriter.h",
905905
"include/llvm/Bitcode/BitcodeWriterPass.h",
906906
"include/llvm/Bitcode/LLVMBitCodes.h",
907+
"include/llvm/Transforms/Utils/ModuleUtils.h",
907908
],
908909
copts = llvm_copts,
909910
deps = [

0 commit comments

Comments
 (0)