diff options
author | Billy Zhu <billyzhu@modular.com> | 2024-09-17 14:27:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-17 14:27:31 -0700 |
commit | a1d64626ba16f5128530ac771c6e641b1155184f (patch) | |
tree | 391745cef62399e96fa431bf19812bfb99b131da /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4a63f4d301c0e044073e1b1f8f110015ec1778a1 (diff) | |
download | llvm-a1d64626ba16f5128530ac771c6e641b1155184f.zip llvm-a1d64626ba16f5128530ac771c6e641b1155184f.tar.gz llvm-a1d64626ba16f5128530ac771c6e641b1155184f.tar.bz2 |
[MLIR][IR] Fix InProgressAliasInfo init for non-alias (#109013)
When visiting an attr/type that is NoAlias, the created
`InProgressAliasInfo` was not getting its `canBeDeferred` and `isType`
fields set. Not setting `canBeDeferred` when it should be true breaks
the assumption that all nested elements are also false. This will cause
problems when at a later point the attr/type needs to be converted by
`markAliasNonDeferrable`, as recursion will stop when a
`canBeDeferred=false` attr/type is reached, leaving its nested elements
not flipped. This causes nested elements to be printed later in the
textual IR and cannot be parsed back in.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions