From 74b2b09fa122680bc024dc731ae43e5f48586330 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Tue, 15 Jun 2021 12:59:52 +0800 Subject: Also return the incomingType member in TypeFieldReference --- binaryview.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index dd61f0e7..7ab01790 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1961,6 +1961,9 @@ vector BinaryView::GetCodeReferencesForTypeField(const Quali src.arch = new CoreArchitecture(refs[i].arch); src.addr = refs[i].addr; src.size = refs[i].size; + BNTypeWithConfidence& tc = refs[i].incomingType; + Ref type = tc.type ? new Type(tc.type) : nullptr; + src.incomingType = Confidence>(type, tc.confidence); result.push_back(src); } -- cgit v1.3.1