Skip to content

Commit 5e3cc00

Browse files
[Offloading] Fix a warning
This patch fixes: llvm/lib/Frontend/Offloading/PropertySet.cpp:95:12: error: unused variable '[It, Inserted]' [-Werror,-Wunused-variable]
1 parent b075dad commit 5e3cc00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Frontend/Offloading/PropertySet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ llvm::offloading::readPropertiesFromJSON(MemoryBufferRef Buf) {
9595
auto [It, Inserted] =
9696
PropSet.try_emplace(PropName.str(), std::move(*Prop));
9797
assert(Inserted && "Property already exists in PropertySet");
98+
(void)Inserted;
9899
}
99100
}
100101
return Res;

0 commit comments

Comments
 (0)