Skip to content

Commit

Permalink
is -> isa
Browse files Browse the repository at this point in the history
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
  • Loading branch information
MrSidims committed Mar 20, 2024
1 parent fb17943 commit 5e6c885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SPIRV/SPIRVToLLVMDbgTran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ SPIRVToLLVMDbgTran::transTypeArrayNonSemantic(const SPIRVExtInst *DebugInst) {
auto *SR = transDebugInst<DISubrange>(BM->get<SPIRVExtInst>(Ops[I]));
// LLVM 15 - exclusive workaround, get from a pointer union seem to be
// bugged
if (SR->getCount().is<ConstantInt *>())
if (isa<ConstantInt *>(SR->getCount()))
if (auto *Count = SR->getCount().get<ConstantInt *>())
TotalCount *= Count->getSExtValue() > 0 ? Count->getSExtValue() : 0;
Subscripts.push_back(SR);
Expand All @@ -452,7 +452,7 @@ SPIRVToLLVMDbgTran::transTypeArrayDynamic(const SPIRVExtInst *DebugInst) {
auto *SR = transDebugInst<DISubrange>(BM->get<SPIRVExtInst>(Ops[I]));
// LLVM 15 - exclusive workaround, get from a pointer union seem to be
// bugged
if (SR->getCount().is<ConstantInt *>())
if (isa<ConstantInt *>(SR->getCount()))
if (auto *Count = SR->getCount().get<ConstantInt *>())
TotalCount *= Count->getSExtValue() > 0 ? Count->getSExtValue() : 0;
Subscripts.push_back(SR);
Expand Down

0 comments on commit 5e6c885

Please sign in to comment.