[Mlir-commits] [mlir] ff8f790 - Remove null check after dereferencing the pointer (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Jan 24 18:08:25 PST 2022
Author: Mehdi Amini
Date: 2022-01-25T02:08:16Z
New Revision: ff8f7904d14d77e40f90c2f8306ecb737b02c997
URL: https://github.com/llvm/llvm-project/commit/ff8f7904d14d77e40f90c2f8306ecb737b02c997
DIFF: https://github.com/llvm/llvm-project/commit/ff8f7904d14d77e40f90c2f8306ecb737b02c997.diff
LOG: Remove null check after dereferencing the pointer (NFC)
Flagged by Coverity
Added:
Modified:
mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp b/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
index 32a77430fa3a9..73decbac7382c 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
@@ -349,7 +349,7 @@ class BufferDeallocation : public BufferPlacementTransformationBase {
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();
More information about the Mlir-commits
mailing list