summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index dd61f0e7..7ab01790 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -1961,6 +1961,9 @@ vector<TypeFieldReference> 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> type = tc.type ? new Type(tc.type) : nullptr;
+ src.incomingType = Confidence<Ref<Type>>(type, tc.confidence);
result.push_back(src);
}