diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-04-27 12:36:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 21:36:59 -0700 |
| commit | 3acbe8145c60f4d1e7a180b4602a94269a489df5 (patch) | |
| tree | 8031e7ca897260ac3ab6d2a920864f3114bc8668 /source/slang/slang-mangle.cpp | |
| parent | a3da31c189a1cc9bdf85a42ac359b8c2777f3550 (diff) | |
Fix most of the disabled warnings on gcc/clang (#2839)
Diffstat (limited to 'source/slang/slang-mangle.cpp')
| -rw-r--r-- | source/slang/slang-mangle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp index 77e6586ff..a8ab98254 100644 --- a/source/slang/slang-mangle.cpp +++ b/source/slang/slang-mangle.cpp @@ -234,7 +234,7 @@ namespace Slang emitRaw(context, "t"); emitQualifiedName(context, thisType->interfaceDeclRef); } - else if (auto errorType = dynamicCast<ErrorType>(type)) + else if (const auto errorType = dynamicCast<ErrorType>(type)) { emitRaw(context, "E"); } @@ -252,7 +252,7 @@ namespace Slang { emitType(context, type); } - else if( auto witness = dynamicCast<Witness>(val) ) + else if( const auto witness = dynamicCast<Witness>(val) ) { // We don't emit witnesses as part of a mangled // name, because the way that the front-end @@ -301,7 +301,7 @@ namespace Slang emitVal(context, lookupIntVal->witness); emitName(context, lookupIntVal->key->getName()); } - else if (auto polynomialIntVal = dynamicCast<PolynomialIntVal>(val)) + else if (const auto polynomialIntVal = dynamicCast<PolynomialIntVal>(val)) { emitRaw(context, "KX"); } @@ -634,7 +634,7 @@ namespace Slang builder << "_Sh"; builder.append(uint64_t(hash), 16); - return builder; + return std::move(builder); } } |
