From 5e6f167aa979cd274f0de413f3adb8319cca273f Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 30 Apr 2020 16:33:54 +0200 Subject: [PATCH] Include SmallVector.h in IPO.h to fix modules build [NFC] This file currently doesn't compile under LLVM_ENABLE_MODULES as SmallVector is used in this header but is never forward declared or included in any way. Let's include SmallVector.h instead and get rid of the SmallVectorImpl fwd declaration which is now no longer necessary. --- llvm/include/llvm/Transforms/IPO.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Transforms/IPO.h b/llvm/include/llvm/Transforms/IPO.h index 3a2edc1..28e454d 100644 --- a/llvm/include/llvm/Transforms/IPO.h +++ b/llvm/include/llvm/Transforms/IPO.h @@ -14,6 +14,7 @@ #ifndef LLVM_TRANSFORMS_IPO_H #define LLVM_TRANSFORMS_IPO_H +#include "llvm/ADT/SmallVector.h" #include #include @@ -27,7 +28,6 @@ class Pass; class BasicBlock; class GlobalValue; class raw_ostream; -template class SmallVectorImpl; //===----------------------------------------------------------------------===// // -- 2.7.4