mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
Use a universal reference (&& instead of const &) for debugString() helper (NFC)
Some classes like mlir::Operation have a non-const print() method.
This commit is contained in:
@@ -25,7 +25,7 @@ namespace mlir {
|
||||
|
||||
// Simple helper function that returns a string as printed from a op.
|
||||
template <typename T>
|
||||
static std::string debugString(const T &op) {
|
||||
static std::string debugString(const T &&op) {
|
||||
std::string instr_str;
|
||||
llvm::raw_string_ostream os(instr_str);
|
||||
op.print(os);
|
||||
|
||||
Reference in New Issue
Block a user