forked from OSchip/llvm-project
Fix GCC5 build by renaming variable used in 'auto' deduction (NFC)
GCC5 errors out with: llvm/lib/Analysis/StackSafetyAnalysis.cpp:935:21: error: use of 'KV' before deduction of 'auto' for (auto &KV : KV.second.Params) { ^
This commit is contained in:
parent
6604295959
commit
339e49e2ca
|
@ -932,11 +932,11 @@ void llvm::generateParamAccessSummary(ModuleSummaryIndex &Index) {
|
|||
for (auto &KV : SSDFA.run()) {
|
||||
std::vector<FunctionSummary::ParamAccess> NewParams;
|
||||
NewParams.reserve(KV.second.Params.size());
|
||||
for (auto &KV : KV.second.Params) {
|
||||
for (auto &Param : KV.second.Params) {
|
||||
NewParams.emplace_back();
|
||||
FunctionSummary::ParamAccess &New = NewParams.back();
|
||||
New.ParamNo = KV.first;
|
||||
New.Use = KV.second.Range; // Only range is needed.
|
||||
New.ParamNo = Param.first;
|
||||
New.Use = Param.second.Range; // Only range is needed.
|
||||
}
|
||||
const_cast<FunctionSummary *>(KV.first)->setParamAccesses(
|
||||
std::move(NewParams));
|
||||
|
|
Loading…
Reference in New Issue