diff --git a/llvm/lib/Transforms/IPO/PartialInlining.cpp b/llvm/lib/Transforms/IPO/PartialInlining.cpp --- a/llvm/lib/Transforms/IPO/PartialInlining.cpp +++ b/llvm/lib/Transforms/IPO/PartialInlining.cpp @@ -181,7 +181,7 @@ // Container for outline regions struct OutlineRegionInfo { - OutlineRegionInfo(SmallVector Region, + OutlineRegionInfo(const SmallVector &Region, BasicBlock *EntryBlock, BasicBlock *ExitBlock, BasicBlock *ReturnBlock) : Region(Region), EntryBlock(EntryBlock), ExitBlock(ExitBlock),