Skip to content

Commit a2b0516

Browse files
committed
Revert "Update HIPUtility.cpp"
This reverts commit 3fe8f32.
1 parent 3fe8f32 commit a2b0516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/HIPUtility.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ class HIPUndefinedFatBinSymbols {
247247

248248
// Handling for defined symbols
249249
if (!isUndefined && !isHidden) {
250-
if (isFatBinSymbol) {
250+
if (isFatBinSymbol && !isHidden) {
251251
DefinedFatBinSymbols.insert(Name.str());
252252
FatBinSymbols.erase(Name.str());
253-
} else if (isGPUBinHandleSymbol) {
253+
} else if (isGPUBinHandleSymbol && !isHidden) {
254254
DefinedGPUBinHandleSymbols.insert(Name.str());
255255
GPUBinHandleSymbols.erase(Name.str());
256256
}

0 commit comments

Comments
 (0)