Memory corruption issure for DenseStringElementsAttr
authorRob Suderman <rob.suderman@gmail.com>
Sat, 25 Apr 2020 08:23:28 +0000 (01:23 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Sat, 25 Apr 2020 08:23:43 +0000 (01:23 -0700)
commit72af0bf1760919adb2b08b9eed0ca05e1e45a6d5
treec42122493c36167e92fac4b924f942a42874d517
parentfb674e3329d8fa694d8e5ce179081890fb918556
Memory corruption issure for DenseStringElementsAttr

Summary: There was a memory corruption issue where the lifespan of the ArrayRef<StringRef> would fail. Directly passing the data will avoid the issue.

Reviewers: rriddle

Reviewed By: rriddle

Subscribers: mehdi_amini, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, grosul1, frgossen, Kayjukh, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78850
mlir/lib/IR/AttributeDetail.h