Skip to content

Commit

Permalink
[SYCL][NFC] Prevent copy caused by auto keyword. (#14554)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Maronas <marcos.maronas@intel.com>
  • Loading branch information
maarquitos14 authored Jul 12, 2024
1 parent 39f6dce commit 64a1320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/SYCLLowerIR/SYCLDeviceRequirements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ std::map<StringRef, util::PropertyValue> SYCLDeviceRequirements::asMap() const {
// SYCLDeviceRequirements has a value/is non-empty.
std::vector<uint32_t> AspectValues;
AspectValues.reserve(Aspects.size());
for (auto Aspect : Aspects)
for (const auto &Aspect : Aspects)
AspectValues.push_back(Aspect.Value);
Requirements["aspects"] = std::move(AspectValues);

Expand Down

0 comments on commit 64a1320

Please sign in to comment.