From 12648bed2873fdf2120b54c5539026ff468283fb Mon Sep 17 00:00:00 2001 From: Nick Kledzik Date: Wed, 1 Aug 2012 01:43:10 +0000 Subject: [PATCH] Fix shadowed variable warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161097 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/StringSwitch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/ADT/StringSwitch.h b/include/llvm/ADT/StringSwitch.h index 74805830d85..7fd6e279603 100644 --- a/include/llvm/ADT/StringSwitch.h +++ b/include/llvm/ADT/StringSwitch.h @@ -48,8 +48,8 @@ class StringSwitch { const T *Result; public: - explicit StringSwitch(StringRef Str) - : Str(Str), Result(0) { } + explicit StringSwitch(StringRef S) + : Str(S), Result(0) { } template StringSwitch& Case(const char (&S)[N], const T& Value) {