forked from OSchip/llvm-project
Remove null check after dereferencing the pointer (NFC)
Flagged by Coverity
This commit is contained in:
parent
92c1c63dae
commit
ff8f7904d1
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue