aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-07-12 03:25:03 +0000
committerRui Ueyama <ruiu@google.com>2016-07-12 03:25:03 +0000
commitef5ec2da4a32ec5633f135f2adcf0eaa078777e1 (patch)
tree79a543d9990d0395aa7ccbfe1cca49a9867bff08 /llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
parent7b4c18e8f38a0139e1f2ece643df9f7c21246b39 (diff)
downloadllvm-ef5ec2da4a32ec5633f135f2adcf0eaa078777e1.zip
llvm-ef5ec2da4a32ec5633f135f2adcf0eaa078777e1.tar.gz
llvm-ef5ec2da4a32ec5633f135f2adcf0eaa078777e1.tar.bz2
Re-enable TPI hash verification for enum records.
We didn't read unique names correctly. As a result, we computed hashes on (non-)unique names instead of unique names. llvm-svn: 275150
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
index 8b44ec1..5617e57 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
@@ -105,7 +105,7 @@ public:
}
Error visitClass(ClassRecord &Rec) override { return verify(Rec); }
- Error visitEnum(EnumRecord &Rec) override { return Error::success(); }
+ Error visitEnum(EnumRecord &Rec) override { return verify(Rec); }
Error visitUnion(UnionRecord &Rec) override { return verify(Rec); }
Error visitTypeBegin(const CVRecord<TypeLeafKind> &Rec) override {