From: Nick Kledzik Date: Wed, 1 Aug 2012 01:43:10 +0000 (+0000) Subject: Fix shadowed variable warning X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=12648bed2873fdf2120b54c5539026ff468283fb;p=oota-llvm.git Fix shadowed variable warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161097 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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) {