Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 350385e commit c4137a6Copy full SHA for c4137a6
1 file changed
orc-rt/include/orc-rt/SimpleSymbolTable.h
@@ -67,8 +67,9 @@ class SimpleSymbolTable {
67
68
// No duplicates. Add entries.
69
for (auto &P : NewSymbols) {
70
- [[maybe_unused]] bool Added = Symbols.insert(P).second;
71
- assert(Added && "NewSymbols contains duplicate definitions");
+ [[maybe_unused]] auto [I, Added] = Symbols.insert(P);
+ assert((Added || I->second == P.second) &&
72
+ "NewSymbols contains incompatible definitions");
73
}
74
75
return Error::success();
0 commit comments