summaryrefslogtreecommitdiff
path: root/BCT
diff options
context:
space:
mode:
authorGravatar Mike Barnett <mbarnett@microsoft.com>2011-11-01 12:45:26 -0700
committerGravatar Mike Barnett <mbarnett@microsoft.com>2011-11-01 12:45:26 -0700
commitb648781a1833d076b4516f7b43ae788fbf27151a (patch)
treefbbb3ed46f39bb2bd50b97da7c7da92090fe2b93 /BCT
parente6d3a8635d826a11fe8756d86b227e6dad838ef5 (diff)
Don't wipe out existing attributes when adding {:extern}
Diffstat (limited to 'BCT')
-rw-r--r--BCT/BytecodeTranslator/Sink.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/BCT/BytecodeTranslator/Sink.cs b/BCT/BytecodeTranslator/Sink.cs
index a550d5cd..d20671b2 100644
--- a/BCT/BytecodeTranslator/Sink.cs
+++ b/BCT/BytecodeTranslator/Sink.cs
@@ -950,7 +950,10 @@ namespace BytecodeTranslator {
!TypeHelper.GetDefiningUnitReference(type).UnitIdentity.Equals(this.assemblyBeingTranslated.UnitIdentity);
if (isExtern) {
var attrib = new Bpl.QKeyValue(Bpl.Token.NoToken, "extern", new List<object>(1), null);
- f.Attributes = attrib;
+ if (f.Attributes == null)
+ f.Attributes = attrib;
+ else
+ f.Attributes.AddLast(attrib);
}
return f;
}