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 @@ -1016,17 +1016,16 @@ RocmInstallationDetector::getCommonBitcodeLibs(
1016
1016
1017
1017
// GPU Sanitizer currently only supports ASan and is enabled through host
1018
1018
// ASan.
1019
- auto GPUSanEnabled = [GPUSan]() {
1020
- return std::get<bool >(GPUSan) &&
1021
- std::get<const SanitizerArgs>(GPUSan).needsAsanRt ();
1022
- };
1019
+ bool GPUSanEnabled = std::get<bool >(GPUSan) &&
1020
+ std::get<const SanitizerArgs>(GPUSan).needsAsanRt ();
1021
+
1023
1022
auto AddBCLib = [&](ToolChain::BitCodeLibraryInfo BCLib,
1024
1023
bool Internalize = true ) {
1025
1024
BCLib.ShouldInternalize = Internalize;
1026
1025
BCLibs.emplace_back (BCLib);
1027
1026
};
1028
1027
auto AddSanBCLibs = [&]() {
1029
- if (GPUSanEnabled () ) {
1028
+ if (GPUSanEnabled) {
1030
1029
AddBCLib (getAsanRTLPath (), false );
1031
1030
}
1032
1031
};
@@ -1035,7 +1034,7 @@ RocmInstallationDetector::getCommonBitcodeLibs(
1035
1034
AddBCLib (getOCMLPath ());
1036
1035
if (!isOpenMP)
1037
1036
AddBCLib (getOCKLPath ());
1038
- else if (GPUSanEnabled () && isOpenMP)
1037
+ else if (GPUSanEnabled && isOpenMP)
1039
1038
AddBCLib (getOCKLPath (), false );
1040
1039
AddBCLib (getDenormalsAreZeroPath (DAZ));
1041
1040
AddBCLib (getUnsafeMathPath (UnsafeMathOpt || FastRelaxedMath));
You can’t perform that action at this time.
0 commit comments