From: Raphael Isemann Date: Thu, 30 Apr 2020 14:33:54 +0000 (+0200) Subject: Include SmallVector.h in IPO.h to fix modules build [NFC] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e6f167aa979cd274f0de413f3adb8319cca273f;p=platform%2Fupstream%2Fllvm.git 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. --- 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; //===----------------------------------------------------------------------===// //