[Driver] Fix unused variable warning in release builds. NFC.

This commit is contained in:
Benjamin Kramer 2021-11-12 00:20:21 +01:00
parent 0309e50f33
commit 98f80d248d
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ static bool shouldSkipSanitizeOption(const ToolChain &TC,
auto OptionalGpuArch = parseTargetID(TC.getTriple(), TargetID, &FeatureMap); auto OptionalGpuArch = parseTargetID(TC.getTriple(), TargetID, &FeatureMap);
assert(OptionalGpuArch && "Invalid Target ID"); assert(OptionalGpuArch && "Invalid Target ID");
(void)OptionalGpuArch;
auto Loc = FeatureMap.find("xnack"); auto Loc = FeatureMap.find("xnack");
if (Loc == FeatureMap.end() || !Loc->second) { if (Loc == FeatureMap.end() || !Loc->second) {
Diags.Report( Diags.Report(