forked from OSchip/llvm-project
[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:
parent
7de8488c3d
commit
80b3f08eee
|
@ -239,7 +239,7 @@ Value PatternLowering::getValueAt(Block *¤tBlock, 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();
|
||||
|
|
Loading…
Reference in New Issue