[llvm] r217000 - [CFLAA] Remove one final initializer list
Hal Finkel
hfinkel at anl.gov
Tue Sep 2 17:06:47 PDT 2014
Author: hfinkel
Date: Tue Sep 2 19:06:47 2014
New Revision: 217000
URL: http://llvm.org/viewvc/llvm-project?rev=217000&view=rev
Log:
[CFLAA] Remove one final initializer list
Maybe MSVC will be happy now...
Modified:
llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp?rev=217000&r1=216999&r2=217000&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp Tue Sep 2 19:06:47 2014
@@ -140,6 +140,10 @@ struct FunctionInfo {
StratifiedSets<Value *> Sets;
// Lots of functions have < 4 returns. Adjust as necessary.
SmallVector<Value *, 4> ReturnedValues;
+
+ FunctionInfo(StratifiedSets<Value *> &&S,
+ SmallVector<Value *, 4> &&RV)
+ : Sets(std::move(S)), ReturnedValues(std::move(RV)) {}
};
struct CFLAliasAnalysis;
@@ -925,7 +929,7 @@ static FunctionInfo buildSetsFrom(CFLAli
Builder.add(&Arg);
}
- return {Builder.build(), std::move(ReturnedValues)};
+ return FunctionInfo(Builder.build(), std::move(ReturnedValues));
}
void CFLAliasAnalysis::scan(Function *Fn) {
More information about the llvm-commits
mailing list