[mlir][PDL] Add append specialization for ByteCode OpCode to fix GCC5 build
authorRiver Riddle <riddleriver@gmail.com>
Wed, 2 Dec 2020 01:08:38 +0000 (17:08 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Wed, 2 Dec 2020 01:13:16 +0000 (17:13 -0800)
mlir/lib/Rewrite/ByteCode.cpp

index ae5f322..972f509 100644 (file)
@@ -265,6 +265,7 @@ struct ByteCodeWriter {
 
   /// Append a field to the bytecode.
   void append(ByteCodeField field) { bytecode.push_back(field); }
+  void append(OpCode opCode) { bytecode.push_back(opCode); }
 
   /// Append an address to the bytecode.
   void append(ByteCodeAddr field) {