Change the parseSource* methods to return OwningModuleRef instead of ModuleOp.
authorRiver Riddle <riverriddle@google.com>
Fri, 30 Aug 2019 05:19:29 +0000 (22:19 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 30 Aug 2019 05:20:10 +0000 (22:20 -0700)
commit3ee3710fd1da25631eb99c2fe58360ccecd3d703
tree363c338e4d9d71c37f6791d8c170c5ac583f6756
parent4bfae66d70aea0df4bf9948e51f4bfa8895a4f4e
Change the parseSource* methods to return OwningModuleRef instead of ModuleOp.

This avoids potential memory leaks from misuse of the API.

PiperOrigin-RevId: 266305750
mlir/include/mlir/Parser.h
mlir/lib/Parser/Parser.cpp