We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4bbcf9 commit 7b54e8bCopy full SHA for 7b54e8b
lib/TBDGen/TBDGen.cpp
@@ -70,7 +70,12 @@ void TBDGenVisitor::addSymbolInternal(StringRef name,
70
if (StringSymbols && kind == SymbolKind::GlobalSymbol) {
71
auto isNewValue = StringSymbols->insert(name).second;
72
(void)isNewValue;
73
- assert(isNewValue && "symbol appears twice");
+#ifndef NDEBUG
74
+ if (!isNewValue) {
75
+ llvm::dbgs() << "TBDGen duplicate symbol: " << name << '\n';
76
+ assert(false && "TBDGen symbol appears twice");
77
+ }
78
+#endif
79
}
80
81
0 commit comments