Merge pull request #6577 from tamasvajk/fix/cil-modified-pointer

C#: Temporarily extract modified pointers as unmodified during CIL ex…
This commit is contained in:
Tamás Vajk
2021-09-02 10:48:51 +02:00
committed by GitHub

View File

@@ -11,6 +11,14 @@ namespace Semmle.Extraction.CIL.Entities
public PointerType(Context cx, Type pointee) : base(cx)
{
this.pointee = pointee;
if (pointee is ModifiedType mt)
{
cx.Extractor.Logger.Log(
Util.Logging.Severity.Info,
$"Pointer to modified type {pointee.GetQualifiedName()} is changed to {mt.Unmodified.GetQualifiedName()}");
this.pointee = mt.Unmodified;
}
}
public override bool Equals(object? obj)