We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d062cb8 commit fb557dfCopy full SHA for fb557df
mlir/include/mlir/IR/AsmState.h
@@ -144,7 +144,8 @@ class AsmResourceBlob {
144
/// Return the underlying data as an array of the given type. This is an
145
/// inherrently unsafe operation, and should only be used when the data is
146
/// known to be of the correct type.
147
- template <typename T> ArrayRef<T> getDataAs() const {
+ template <typename T>
148
+ ArrayRef<T> getDataAs() const {
149
return llvm::ArrayRef<T>((const T *)data.data(), data.size() / sizeof(T));
150
}
151
0 commit comments