mirror of https://github.com/llvm/circt.git
[Calyx] Fix a clang warning identifying a bug.
warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl] StringRef portName = valueName(group->getParentOfType<ComponentOp>(), value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
805d7e8be8
commit
64f16a2f50
|
@ -791,7 +791,8 @@ static LogicalResult isCombinational(Value value, GroupInterface group) {
|
|||
"is not combinational.";
|
||||
}
|
||||
|
||||
StringRef portName = valueName(group->getParentOfType<ComponentOp>(), value);
|
||||
std::string portName =
|
||||
valueName(group->getParentOfType<ComponentOp>(), value);
|
||||
return group->emitOpError() << "with port: " << portName
|
||||
<< ". This operation is not combinational.";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue