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 312c1cf commit 5bc673dCopy full SHA for 5bc673d
llvm/lib/MC/MCParser/MasmParser.cpp
@@ -479,9 +479,7 @@ class MasmParser : public MCAsmParser {
479
void addDirectiveHandler(StringRef Directive,
480
ExtensionDirectiveHandler Handler) override {
481
ExtensionDirectiveMap[Directive] = Handler;
482
- if (!DirectiveKindMap.contains(Directive)) {
483
- DirectiveKindMap[Directive] = DK_HANDLER_DIRECTIVE;
484
- }
+ DirectiveKindMap.try_emplace(Directive, DK_HANDLER_DIRECTIVE);
485
}
486
487
void addAliasForDirective(StringRef Directive, StringRef Alias) override {
0 commit comments