diff --git a/mlir/include/mlir/Support/DebugStringHelper.h b/mlir/include/mlir/Support/DebugStringHelper.h index 0a52f1853e49..34eec7676361 100644 --- a/mlir/include/mlir/Support/DebugStringHelper.h +++ b/mlir/include/mlir/Support/DebugStringHelper.h @@ -25,7 +25,7 @@ namespace mlir { // Simple helper function that returns a string as printed from a op. template -static std::string debugString(const T &&op) { +static std::string debugString(T &&op) { std::string instr_str; llvm::raw_string_ostream os(instr_str); op.print(os);