[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
This commit is contained in:
Uday Bondhugula 2022-01-04 08:24:14 +05:30
parent 7de8488c3d
commit 80b3f08eee
1 changed files with 1 additions and 1 deletions

View File

@ -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();