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();
|
||||
Operation *parentOp = argRegion->getParentOp();
|
||||
RegionBranchOpInterface regionInterface;
|
||||
if (!argRegion || &argRegion->front() != block ||
|
||||
if (&argRegion->front() != block ||
|
||||
!(regionInterface = dyn_cast<RegionBranchOpInterface>(parentOp)))
|
||||
return success();
|
||||
|
||||
|
|
Loading…
Reference in New Issue