forked from OSchip/llvm-project
Specify argument to be `const` for `debugString()` helper (NFC)
This allows using this helper with rvalues.
This commit is contained in:
parent
84013d7093
commit
c0b70def21
|
@ -24,7 +24,8 @@
|
|||
namespace mlir {
|
||||
|
||||
// Simple helper function that returns a string as printed from a op.
|
||||
template <typename T> static std::string debugString(T &op) {
|
||||
template <typename T>
|
||||
static std::string debugString(const T &op) {
|
||||
std::string instr_str;
|
||||
llvm::raw_string_ostream os(instr_str);
|
||||
op.print(os);
|
||||
|
|
Loading…
Reference in New Issue