Fix segfault when no symbol is given to an constraint operand
authorLei Zhang <antiagainst@google.com>
Wed, 30 Oct 2019 18:12:21 +0000 (11:12 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 30 Oct 2019 18:12:57 +0000 (11:12 -0700)
commitcb40e36d3bb93e876ec6d05f128a23f26b952604
tree6ef1bea429b51f28ebd65a5e30c915dd5b68a7c6
parent05a5a4141648218db2440b4e3a355398ef822111
Fix segfault when no symbol is given to an constraint operand

This fixed the segfault when we see the following pattern:
  Pat<(...), (...), [(... 1, 2, 3), ...]>

PiperOrigin-RevId: 277544300
mlir/lib/TableGen/Pattern.cpp
mlir/test/mlir-tblgen/expect-symbol.td [new file with mode: 0644]