summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Remarks/RemarkFormat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Remarks/RemarkFormat.cpp')
-rw-r--r--llvm/lib/Remarks/RemarkFormat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Remarks/RemarkFormat.cpp b/llvm/lib/Remarks/RemarkFormat.cpp
index c7fce151eff..5006421a3c6 100644
--- a/llvm/lib/Remarks/RemarkFormat.cpp
+++ b/llvm/lib/Remarks/RemarkFormat.cpp
@@ -32,9 +32,9 @@ Expected<Format> llvm::remarks::parseFormat(StringRef FormatStr) {
return Result;
}
-Expected<Format> llvm::remarks::magicToFormat(StringRef Magic) {
+Expected<Format> llvm::remarks::magicToFormat(StringRef MagicStr) {
auto Result =
- StringSwitch<Format>(Magic)
+ StringSwitch<Format>(MagicStr)
.StartsWith("--- ", Format::YAML) // This is only an assumption.
.StartsWith(remarks::Magic, Format::YAMLStrTab)
.StartsWith(remarks::ContainerMagic, Format::Bitstream)
@@ -42,6 +42,6 @@ Expected<Format> llvm::remarks::magicToFormat(StringRef Magic) {
if (Result == Format::Unknown)
return createStringError(std::make_error_code(std::errc::invalid_argument),
- "Unknown remark magic: '%s'", Magic.data());
+ "Unknown remark magic: '%s'", MagicStr.data());
return Result;
}
OpenPOWER on IntegriCloud