Fixed compiler warning C4457 'declaration of 'node' hides function parameter'.
BUG=angleproject:1119
Change-Id: Ie3de5a776b5860b1ca502cee9e2b19c41cd3bfb2
Reviewed-on: https://chromium-review.googlesource.com/292051
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Tested-by: Cooper Partin <coopp@microsoft.com>
diff --git a/src/compiler/translator/ASTMetadataHLSL.cpp b/src/compiler/translator/ASTMetadataHLSL.cpp
index 55bb412..aa71645 100644
--- a/src/compiler/translator/ASTMetadataHLSL.cpp
+++ b/src/compiler/translator/ASTMetadataHLSL.cpp
@@ -245,9 +245,9 @@
// A return or discard jumps out of all the enclosing loops
if (!mLoopsAndSwitches.empty())
{
- for (TIntermNode* node : mLoopsAndSwitches)
+ for (TIntermNode *intermNode : mLoopsAndSwitches)
{
- TIntermLoop *loop = node->getAsLoopNode();
+ TIntermLoop *loop = intermNode->getAsLoopNode();
if (loop)
{
mMetadata->mDiscontinuousLoops.insert(loop);