forked from OSchip/llvm-project
[Driver] Fix unused variable warning in release builds. NFC.
This commit is contained in:
parent
0309e50f33
commit
98f80d248d
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue