aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorArvind Sudarsanam <arvind.sudarsanam@intel.com>2025-08-02 00:57:26 -0400
committerGitHub <noreply@github.com>2025-08-02 00:57:26 -0400
commitee67f78776d0af64bc27cabcca62883f7a698467 (patch)
tree88149610d62f7b95dda378c6fa7699fbb2ce53c7 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent1db2879a36d11b2e54826b2fc97174e61ad68474 (diff)
downloadllvm-ee67f78776d0af64bc27cabcca62883f7a698467.zip
llvm-ee67f78776d0af64bc27cabcca62883f7a698467.tar.gz
llvm-ee67f78776d0af64bc27cabcca62883f7a698467.tar.bz2
Fix error caused by reference to local binding (#151789)
This change fixes one of the failures in https://github.com/llvm/llvm-project/pull/147321 Following code snippet: ` for (const auto &[CategoryName, PropSet] : PSRegistry) { J.attributeObject(CategoryName, [&] { for (const auto &[PropName, PropVal] : PropSet) { ` causes a build warning that is emitted as an error. error: reference to local binding 'PropSet' declared in enclosing lambda expression This is resolved by capturing PropSet in a local variable. Thanks Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions