[Mlir-commits] [mlir] 80b3f08 - [MLIR[PDL] NFC. Fix unused variable warning in PDLToPDLInterp.cpp

Uday Bondhugula llvmlistbot at llvm.org
Mon Jan 3 18:55:59 PST 2022


Author: Uday Bondhugula
Date: 2022-01-04T08:25:02+05:30
New Revision: 80b3f08eeee2f0e50ab3d9295e9c1d3f251592fb

URL: https://github.com/llvm/llvm-project/commit/80b3f08eeee2f0e50ab3d9295e9c1d3f251592fb
DIFF: https://github.com/llvm/llvm-project/commit/80b3f08eeee2f0e50ab3d9295e9c1d3f251592fb.diff

LOG: [MLIR[PDL] NFC. Fix unused variable warning in PDLToPDLInterp.cpp

NFC. Fix unused variable warning in PDLToPDLInterp.cpp.

Differential Revision: https://reviews.llvm.org/D116571

Added: 
    

Modified: 
    mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
index 9362a29ddb6f..b9c4dda9d649 100644
--- a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
+++ b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
@@ -239,7 +239,7 @@ Value PatternLowering::getValueAt(Block *&currentBlock, Position *pos) {
   // Get the value for the parent position.
   Value parentVal;
   if (Position *parent = pos->getParent())
-    parentVal = getValueAt(currentBlock, pos->getParent());
+    parentVal = getValueAt(currentBlock, parent);
 
   // TODO: Use a location from the position.
   Location loc = parentVal ? parentVal.getLoc() : builder.getUnknownLoc();


        


More information about the Mlir-commits mailing list