commit | e40e7362ba4208d45fb88525361a7de2fad4bb91 | [log] [tgz] |
---|---|---|
author | ThiƩbaud Weksteen <[email protected]> | Wed Oct 28 15:03:00 2020 +0100 |
committer | ThiƩbaud Weksteen <[email protected]> | Wed Oct 28 15:05:11 2020 +0100 |
tree | ac7a6b83ef63396cc1f9af214c18bb0892b55c80 | |
parent | 983137f038c4d4b95a0cd86b7c42d0313b50de67 [diff] [blame] |
Importing rustc-1.47.0 Bug: 171280890 Change-Id: Iac01e5c09a6ae8e508762cd96c2a88d191af4f0e
diff --git a/src/llvm-project/llvm/utils/TableGen/ExegesisEmitter.cpp b/src/llvm-project/llvm/utils/TableGen/ExegesisEmitter.cpp index 976d5f5..8f784e4 100644 --- a/src/llvm-project/llvm/utils/TableGen/ExegesisEmitter.cpp +++ b/src/llvm-project/llvm/utils/TableGen/ExegesisEmitter.cpp
@@ -101,7 +101,7 @@ PrintFatalError("ERROR: No 'Target' subclasses defined!"); if (Targets.size() != 1) PrintFatalError("ERROR: Multiple subclasses of Target defined!"); - Target = Targets[0]->getName(); + Target = std::string(Targets[0]->getName()); } void ExegesisEmitter::emitPfmCountersInfo(const Record &Def,