diff options
author | Richard Biener <rguenther@suse.de> | 2025-02-03 11:27:20 +0100 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-02-03 14:15:01 +0100 |
commit | 6ec19825b4e72611cdbd4749feed67b61392aa81 (patch) | |
tree | 0d39318e94016308639b6ca30eb7e2a53904d2ef /gcc | |
parent | fbcbbfe2bf83eb8b1347144eeca37b06be5a8bb5 (diff) | |
download | gcc-6ec19825b4e72611cdbd4749feed67b61392aa81.zip gcc-6ec19825b4e72611cdbd4749feed67b61392aa81.tar.gz gcc-6ec19825b4e72611cdbd4749feed67b61392aa81.tar.bz2 |
c++/79786 - bougs invocation of DATA_ABI_ALIGNMENT macro
The first argument is supposed to be a type, not a decl.
PR c++/79786
gcc/cp/
* rtti.cc (emit_tinfo_decl): Fix DATA_ABI_ALIGNMENT invocation.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/rtti.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/rtti.cc b/gcc/cp/rtti.cc index 2dfc2e3..dcf84f1 100644 --- a/gcc/cp/rtti.cc +++ b/gcc/cp/rtti.cc @@ -1741,7 +1741,8 @@ emit_tinfo_decl (tree decl) /* Avoid targets optionally bumping up the alignment to improve vector instruction accesses, tinfo are never accessed this way. */ #ifdef DATA_ABI_ALIGNMENT - SET_DECL_ALIGN (decl, DATA_ABI_ALIGNMENT (decl, TYPE_ALIGN (TREE_TYPE (decl)))); + SET_DECL_ALIGN (decl, DATA_ABI_ALIGNMENT (TREE_TYPE (decl), + TYPE_ALIGN (TREE_TYPE (decl)))); DECL_USER_ALIGN (decl) = true; #endif return true; |