diff --git a/clang/utils/TableGen/MveEmitter.cpp b/clang/utils/TableGen/MveEmitter.cpp index 51e570944b49b..5ae894d8e0718 100644 --- a/clang/utils/TableGen/MveEmitter.cpp +++ b/clang/utils/TableGen/MveEmitter.cpp @@ -471,7 +471,7 @@ class Result { public: virtual ~Result() = default; - using Scope = std::map; + using Scope = std::map>; virtual void genCode(raw_ostream &OS, CodeGenParamAllocator &) const = 0; virtual bool hasIntegerConstantValue() const { return false; } virtual uint32_t integerConstantValue() const { return 0; } @@ -1278,7 +1278,7 @@ Result::Ptr EmitterBase::getCodeForDagArg(const DagInit *D, unsigned ArgNum, if (!isa(Arg)) PrintFatalError( "dag operator argument should not have both a value and a name"); - auto it = Scope.find(std::string(Name)); + auto it = Scope.find(Name); if (it == Scope.end()) PrintFatalError("unrecognized variable name '" + Name + "'"); return it->second;