Include SmallVector.h in IPO.h to fix modules build [NFC]
authorRaphael Isemann <teemperor@gmail.com>
Thu, 30 Apr 2020 14:33:54 +0000 (16:33 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Thu, 30 Apr 2020 14:33:55 +0000 (16:33 +0200)
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

index 3a2edc1..28e454d 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_TRANSFORMS_IPO_H
 #define LLVM_TRANSFORMS_IPO_H
 
+#include "llvm/ADT/SmallVector.h"
 #include <functional>
 #include <vector>
 
@@ -27,7 +28,6 @@ class Pass;
 class BasicBlock;
 class GlobalValue;
 class raw_ostream;
-template <typename T> class SmallVectorImpl;
 
 //===----------------------------------------------------------------------===//
 //