diff --git a/lib/Analysis/CFLAliasAnalysis.cpp b/lib/Analysis/CFLAliasAnalysis.cpp index 05a472d761b..1bf1c335795 100644 --- a/lib/Analysis/CFLAliasAnalysis.cpp +++ b/lib/Analysis/CFLAliasAnalysis.cpp @@ -140,6 +140,10 @@ struct FunctionInfo { StratifiedSets Sets; // Lots of functions have < 4 returns. Adjust as necessary. SmallVector ReturnedValues; + + FunctionInfo(StratifiedSets &&S, + SmallVector &&RV) + : Sets(std::move(S)), ReturnedValues(std::move(RV)) {} }; struct CFLAliasAnalysis; @@ -925,7 +929,7 @@ static FunctionInfo buildSetsFrom(CFLAliasAnalysis &Analysis, Function *Fn) { Builder.add(&Arg); } - return {Builder.build(), std::move(ReturnedValues)}; + return FunctionInfo(Builder.build(), std::move(ReturnedValues)); } void CFLAliasAnalysis::scan(Function *Fn) {