Remove null check after dereferencing the pointer (NFC)

Flagged by Coverity
This commit is contained in:
Mehdi Amini 2022-01-25 02:07:57 +00:00
parent 92c1c63dae
commit ff8f7904d1
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ private:
Region *argRegion = block->getParent(); Region *argRegion = block->getParent();
Operation *parentOp = argRegion->getParentOp(); Operation *parentOp = argRegion->getParentOp();
RegionBranchOpInterface regionInterface; RegionBranchOpInterface regionInterface;
if (!argRegion || &argRegion->front() != block || if (&argRegion->front() != block ||
!(regionInterface = dyn_cast<RegionBranchOpInterface>(parentOp))) !(regionInterface = dyn_cast<RegionBranchOpInterface>(parentOp)))
return success(); return success();