diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp index 016c51b8f4e0..6c5dd93e8eda 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp @@ -66,7 +66,7 @@ TpiStream::~TpiStream() {} // Corresponds to `fUDTAnon`. template static bool isAnonymous(T &Rec) { - StringRef Name = Rec.getUniqueName(); + StringRef Name = Rec.getName(); return Name == "" || Name == "__unnamed" || Name.endswith("::") || Name.endswith("::__unnamed"); }