[PATCH] D78850: Memory corruption issure for DenseStringElementsAttr
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 25 21:46:11 PDT 2020
mehdi_amini added inline comments.
================
Comment at: mlir/lib/IR/AttributeDetail.h:614
+ // Otherwise, this is a splat.
+ return KeyTy(ty, data, hashVal, /*isSplat=*/true);
}
----------------
I don't understand the fix, can you elaborate? Seems like the ArrayRef is passed by value to the KeyTy so I don't get the lifetime issue?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78850/new/
https://reviews.llvm.org/D78850
More information about the llvm-commits
mailing list