summaryrefslogtreecommitdiff
path: root/include/llvm/Support/SMLoc.h
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2012-05-18 18:39:06 +0000
committerNick Kledzik <kledzik@apple.com>2012-05-18 18:39:06 +0000
commit18e2f6e94cf9dc48bfc6dfa3848971aa88e334da (patch)
tree0b2e051491692b17da3eed3dc71571ad23b72ea9 /include/llvm/Support/SMLoc.h
parent23da8a061fcadd20a2abe3afafdeed2d505acfb8 (diff)
downloadllvm-18e2f6e94cf9dc48bfc6dfa3848971aa88e334da.tar.gz
llvm-18e2f6e94cf9dc48bfc6dfa3848971aa88e334da.tar.bz2
llvm-18e2f6e94cf9dc48bfc6dfa3848971aa88e334da.tar.xz
fix warnings when compiling with -Wshadow
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SMLoc.h')
-rw-r--r--include/llvm/Support/SMLoc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/SMLoc.h b/include/llvm/Support/SMLoc.h
index d48bfcc30c..7e0811a1af 100644
--- a/include/llvm/Support/SMLoc.h
+++ b/include/llvm/Support/SMLoc.h
@@ -48,7 +48,7 @@ public:
SMLoc Start, End;
SMRange() {}
- SMRange(SMLoc Start, SMLoc End) : Start(Start), End(End) {
+ SMRange(SMLoc St, SMLoc En) : Start(St), End(En) {
assert(Start.isValid() == End.isValid() &&
"Start and end should either both be valid or both be invalid!");
}