Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clang/utils/TableGen/MveEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class Result {

public:
virtual ~Result() = default;
using Scope = std::map<std::string, Ptr>;
using Scope = std::map<std::string, Ptr, std::less<>>;
virtual void genCode(raw_ostream &OS, CodeGenParamAllocator &) const = 0;
virtual bool hasIntegerConstantValue() const { return false; }
virtual uint32_t integerConstantValue() const { return 0; }
Expand Down Expand Up @@ -1278,7 +1278,7 @@ Result::Ptr EmitterBase::getCodeForDagArg(const DagInit *D, unsigned ArgNum,
if (!isa<UnsetInit>(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;
Expand Down
Loading