diff options
Diffstat (limited to 'llvm/utils/TableGen/GICombinerEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/GICombinerEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/GICombinerEmitter.cpp b/llvm/utils/TableGen/GICombinerEmitter.cpp index c03cd371ef9d..63a9ed682d4f 100644 --- a/llvm/utils/TableGen/GICombinerEmitter.cpp +++ b/llvm/utils/TableGen/GICombinerEmitter.cpp @@ -633,7 +633,7 @@ void GICombinerEmitter::emitNameMatcher(raw_ostream &OS) const { raw_string_ostream SS(Code); SS << "return " << EnumeratedRule.getID() << ";\n"; Cases.push_back( - std::make_pair(std::string(EnumeratedRule.getName()), SS.str())); + std::make_pair(std::string(EnumeratedRule.getName()), Code)); } OS << "static Optional<uint64_t> getRuleIdxForIdentifier(StringRef " |