File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
clang/lib/Driver/ToolChains Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,8 @@ class HIPUndefinedFatBinSymbols {
148148 bool Verbose;
149149 std::set<std::string> FatBinSymbols;
150150 std::set<std::string> GPUBinHandleSymbols;
151- std::set<std::string> DefinedFatBinSymbols;
152- std::set<std::string> DefinedGPUBinHandleSymbols;
151+ std::set<std::string, std::less<> > DefinedFatBinSymbols;
152+ std::set<std::string, std::less<> > DefinedGPUBinHandleSymbols;
153153 const std::string FatBinPrefix = " __hip_fatbin" ;
154154 const std::string GPUBinHandlePrefix = " __hip_gpubin_handle" ;
155155
@@ -260,11 +260,10 @@ class HIPUndefinedFatBinSymbols {
260260
261261 // Add undefined symbols if they are not in the defined sets
262262 if (isFatBinSymbol &&
263- DefinedFatBinSymbols.find (Name. str () ) == DefinedFatBinSymbols.end ())
263+ DefinedFatBinSymbols.find (Name) == DefinedFatBinSymbols.end ())
264264 FatBinSymbols.insert (Name.str ());
265- else if (isGPUBinHandleSymbol &&
266- DefinedGPUBinHandleSymbols.find (Name.str ()) ==
267- DefinedGPUBinHandleSymbols.end ())
265+ else if (isGPUBinHandleSymbol && DefinedGPUBinHandleSymbols.find (Name) ==
266+ DefinedGPUBinHandleSymbols.end ())
268267 GPUBinHandleSymbols.insert (Name.str ());
269268 }
270269 }
You can’t perform that action at this time.
0 commit comments