diff options
| author | John Hodge <tpg@ucc.asn.au> | 2019-01-01 18:44:54 +0800 |
|---|---|---|
| committer | John Hodge <tpg@ucc.asn.au> | 2019-01-01 18:44:54 +0800 |
| commit | 3ae5e62aedbd7e3c566e02579a76e759f7eb3cb9 (patch) | |
| tree | 4adfec69ab6207ce297cfbfa7b1ddc43b06a5c47 /src/trans/target.cpp | |
| parent | b7c4d85d6642a68fc8fcfd1e0466f3b9dae41b30 (diff) | |
| download | mrust-3ae5e62aedbd7e3c566e02579a76e759f7eb3cb9.tar.gz | |
Target - Handle opaque types in size/align
Diffstat (limited to 'src/trans/target.cpp')
| -rw-r--r-- | src/trans/target.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trans/target.cpp b/src/trans/target.cpp index dccc566d..9a855036 100644 --- a/src/trans/target.cpp +++ b/src/trans/target.cpp @@ -587,6 +587,8 @@ bool Target_GetSizeAndAlignOf(const Span& sp, const StaticTraitResolve& resolve, } ), (Path, + if( te.binding.is_Opaque() ) + return false; const auto* repr = Target_GetTypeRepr(sp, resolve, ty); if( !repr ) { |
