summaryrefslogtreecommitdiffstats
path: root/source/slang/lower.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-04 16:09:48 -0400
committerYong He <yonghe@outlook.com>2017-11-04 16:09:48 -0400
commit288841f66c808af70ad7687f9704c87075129b18 (patch)
treeb6e2e4f5a28be28b28a346f3803121c34bb28f87 /source/slang/lower.cpp
parent664e0da8dff1d04860cc46ce8139cbd47e15c552 (diff)
fixed all warnings
Diffstat (limited to 'source/slang/lower.cpp')
-rw-r--r--source/slang/lower.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/slang/lower.cpp b/source/slang/lower.cpp
index 429ebbc97..73854a5c7 100644
--- a/source/slang/lower.cpp
+++ b/source/slang/lower.cpp
@@ -2236,11 +2236,11 @@ struct LoweringVisitor
Modifiers shallowCloneModifiers(Modifiers const& oldModifiers)
{
- RefPtr<SharedModifiers> shared = new SharedModifiers();
- shared->next = oldModifiers.first;
+ RefPtr<SharedModifiers> sharedModifiers = new SharedModifiers();
+ sharedModifiers->next = oldModifiers.first;
Modifiers newModifiers;
- newModifiers.first = shared;
+ newModifiers.first = sharedModifiers;
return newModifiers;
}
@@ -3809,12 +3809,12 @@ struct LoweringVisitor
"Vector").As<GenericDecl>();
auto vectorTypeDecl = vectorGenericDecl->inner;
- auto substitutions = new Substitutions();
- substitutions->genericDecl = vectorGenericDecl.Ptr();
- substitutions->args.Add(elementType);
- substitutions->args.Add(elementCount);
+ auto substs = new Substitutions();
+ substs->genericDecl = vectorGenericDecl.Ptr();
+ substs->args.Add(elementType);
+ substs->args.Add(elementCount);
- auto declRef = DeclRef<Decl>(vectorTypeDecl.Ptr(), substitutions);
+ auto declRef = DeclRef<Decl>(vectorTypeDecl.Ptr(), substs);
return DeclRefType::Create(
session,