diff options
| author | Xusheng <xusheng@vector35.com> | 2021-06-15 12:59:52 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2021-08-05 15:42:19 +0800 |
| commit | 74b2b09fa122680bc024dc731ae43e5f48586330 (patch) | |
| tree | 737c1339b82e683e876a997ef220bc7082550bed /binaryview.cpp | |
| parent | a5a34fe70a2130a9bdd82eeaa31d427f607b3022 (diff) | |
Also return the incomingType member in TypeFieldReference
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 3 |
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); } |
