Branch: refs/heads/main
Revision: 6516d2c949bef7706045fc4b013ce951cfc6d777
Author: dlongnecke-cray
Link: Fix bug in code that fetches C type alignment, exposed with --verify by dlongnecke-cray · Pull Request #28661 · chapel-lang/chapel · GitHub
Log Message:
Fix bug in code that fetches C type alignment, exposed with --verify (#28661)
While working on other code, I discovered a bug with a new pragma I
added in #28649 that only appears when --verify is thrown. Add new
code to a function that fetches alignment for Clang types, adjusting it
to handle types with the new pragma.
Reviewed by @jabraham17. Thanks!
Diff:
M compiler/llvm/clangUtil.cpp
A test/interop/C/errorMessage/OpaqueCTypeAliasVerify.chpl
A test/interop/C/errorMessage/OpaqueCTypeAliasVerify.cleanfiles
A test/interop/C/errorMessage/OpaqueCTypeAliasVerify.compopts
A test/interop/C/errorMessage/OpaqueCTypeAliasVerify.good
A test/interop/C/errorMessage/OpaqueCTypeAliasVerify.noexec
https://github.com/chapel-lang/chapel/pull/28661.diff