mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[NVPTX] Fix unused var warning with asserts disabled
<...>/llvm-project/llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp:191:15: warning: unused variable ‘ASC’ [-Wunused-variable] 191 | if (auto *ASC = dyn_cast<AddrSpaceCastInst>(I.OldInstruction)) { | ^~~
This commit is contained in:
parent
cb3a45a8ba
commit
124ccbb727
@ -190,6 +190,7 @@ static void convertToParamAS(Value *OldUser, Value *Param) {
|
||||
}
|
||||
if (auto *ASC = dyn_cast<AddrSpaceCastInst>(I.OldInstruction)) {
|
||||
assert(ASC->getDestAddressSpace() == ADDRESS_SPACE_PARAM);
|
||||
(void)ASC;
|
||||
// Just pass through the argument, the old ASC is no longer needed.
|
||||
return I.NewParam;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user