From 619fa0d7fc8a08f871f33815083adb8bb07b9751 Mon Sep 17 00:00:00 2001 From: zero9178 Date: Thu, 3 Jun 2021 23:28:47 +0200 Subject: [PATCH] [NFC] Add missing includes for LLVM_ENABLE_MODULES builds Building LLVM with the LLVM_ENABLE_MODULES cmake option fails when the modules are being compiled due to missing includes. This is a side effect of some transitive includes that changed recently. Differential Revision: https://reviews.llvm.org/D103645 --- llvm/include/llvm/CodeGen/MBFIWrapper.h | 1 + llvm/include/llvm/Support/CFGUpdate.h | 1 + 2 files changed, 2 insertions(+) diff --git a/llvm/include/llvm/CodeGen/MBFIWrapper.h b/llvm/include/llvm/CodeGen/MBFIWrapper.h index bcbf3eedf59d..7c0a4c6e0252 100644 --- a/llvm/include/llvm/CodeGen/MBFIWrapper.h +++ b/llvm/include/llvm/CodeGen/MBFIWrapper.h @@ -15,6 +15,7 @@ #define LLVM_CODEGEN_MBFIWRAPPER_H #include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/Optional.h" #include "llvm/Support/BlockFrequency.h" namespace llvm { diff --git a/llvm/include/llvm/Support/CFGUpdate.h b/llvm/include/llvm/Support/CFGUpdate.h index 3a12b9d86c18..18c34bb73695 100644 --- a/llvm/include/llvm/Support/CFGUpdate.h +++ b/llvm/include/llvm/Support/CFGUpdate.h @@ -14,6 +14,7 @@ #ifndef LLVM_SUPPORT_CFGUPDATE_H #define LLVM_SUPPORT_CFGUPDATE_H +#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/PointerIntPair.h" #include "llvm/Support/Compiler.h"