diff options
author | John Hodge <tpg@ucc.asn.au> | 2018-06-30 12:30:38 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2018-06-30 12:30:38 +0800 |
commit | 87ec3ea65bc42214c4e78c991ec2033fc103bf63 (patch) | |
tree | 95f5b62513858f2efd236a692be077a46556e565 /src/trans/codegen_c.cpp | |
parent | 98c49f19838c1049be70cfe0a8bd7852b03ecafb (diff) | |
download | mrust-87ec3ea65bc42214c4e78c991ec2033fc103bf63.tar.gz |
HIR Expand VTable - Fix incorrect associated type lookups
Diffstat (limited to 'src/trans/codegen_c.cpp')
-rw-r--r-- | src/trans/codegen_c.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/trans/codegen_c.cpp b/src/trans/codegen_c.cpp index c30657bf..91138d14 100644 --- a/src/trans/codegen_c.cpp +++ b/src/trans/codegen_c.cpp @@ -1923,6 +1923,7 @@ namespace { // Find the corresponding vtable entry for(const auto& m : trait.m_value_indexes) { + // NOTE: The "3" is the number of non-method vtable entries if( m.second.first != 3+i ) continue ; |