Pre-allocate space for results from a regex match that uses 3 match strings.
authorMLIR Team <no-reply@google.com>
Thu, 10 Oct 2019 02:57:02 +0000 (19:57 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 10 Oct 2019 03:07:46 +0000 (20:07 -0700)
commit221e661e911af59f01b7b9ba214377daf8f50611
treec907ee845fc6b30824a3ab4fe64ed735307edec3
parent27f400c8137a90e389b104138a3634044b3b3937
Pre-allocate space for results from a regex match that uses 3 match strings.

That space is 4 StringRefs, not 3, because element 0 of the match always
contains the entire source string.

PiperOrigin-RevId: 273875606
mlir/lib/IR/Diagnostics.cpp