mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-30 09:01:19 +00: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
30bbfda01f
commit
54ee962e47
@ -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