diff options
author | Zachary Turner <zturner@google.com> | 2016-09-01 18:08:19 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-09-01 18:08:19 +0000 |
commit | 5c7c2307a83665c4861e173a8f4ec4f514c0bbd6 (patch) | |
tree | fce88347a8d829a7af20b2cb833d5212d592267c /llvm/lib | |
parent | 507ba209077b1376980cde8eea0d5bced4d86c52 (diff) | |
download | bcm5719-llvm-5c7c2307a83665c4861e173a8f4ec4f514c0bbd6.tar.gz bcm5719-llvm-5c7c2307a83665c4861e173a8f4ec4f514c0bbd6.zip |
[codeview] Properly propagate the TypeLeafKind through the pipeline.
llvm-svn: 280388
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp index 7154b297b12..6214e633b74 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp @@ -124,13 +124,13 @@ public: Expected<TypeLeafKind> visitTypeBegin(const CVRecord<TypeLeafKind> &Rec) override { ++Index; - RawRecord = &Rec; + RawRecord = Rec; return Rec.Type; } private: template <typename T> Error verify(T &Rec) { - uint32_t Hash = getTpiHash(Rec, *RawRecord); + uint32_t Hash = getTpiHash(Rec, RawRecord); if (Hash % NumHashBuckets != HashValues[Index]) return errorInvalidHash(); return Error::success(); @@ -152,7 +152,7 @@ private: } FixedStreamArray<support::ulittle32_t> HashValues; - const CVRecord<TypeLeafKind> *RawRecord; + CVRecord<TypeLeafKind> RawRecord; uint32_t NumHashBuckets; uint32_t Index = -1; }; |