diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-08 22:30:12 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-09 13:01:03 +0000 |
| commit | 0d5ad57ae34bacbc4f5e5f42508d579bf39bb8cf (patch) | |
| tree | b9f676a1e45f15609a8c0153a2a3fa2657f7c849 /llvm/lib/Remarks/RemarkFormat.cpp | |
| parent | 092577e317229df600539f678064f321737a761b (diff) | |
| download | bcm5719-llvm-0d5ad57ae34bacbc4f5e5f42508d579bf39bb8cf.tar.gz bcm5719-llvm-0d5ad57ae34bacbc4f5e5f42508d579bf39bb8cf.zip | |
Remarks - fix shadow variable warnings. NFCI.
Avoid conflict with llvm::remarks::Magic global variable.
Diffstat (limited to 'llvm/lib/Remarks/RemarkFormat.cpp')
| -rw-r--r-- | llvm/lib/Remarks/RemarkFormat.cpp | 6 |
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; } |

