Skip to content

Commit aeb84e2

Browse files
author
Erich Keane
committed
Fix build error, changed to 'set' but didn't change to 'insert'
1 parent baacc73 commit aeb84e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5040,7 +5040,7 @@ bool SYCLIntegrationFooter::emit(raw_ostream &OS) {
50405040
if (llvm::find(VisitedSpecConstants, VD) != VisitedSpecConstants.end())
50415041
continue;
50425042

5043-
VisitedSpecConstants.push_back(VD);
5043+
VisitedSpecConstants.insert(VD);
50445044
std::string TopShim = EmitSpecIdShims(OS, ShimCounter, VD);
50455045
OS << "__SYCL_INLINE_NAMESPACE(cl) {\n";
50465046
OS << "namespace sycl {\n";

0 commit comments

Comments
 (0)