diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 15:37:40 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 15:37:40 -0400 |
| commit | 664e0da8dff1d04860cc46ce8139cbd47e15c552 (patch) | |
| tree | f5d023e6799d5265d91db2368896c6ad3b51ea4c /source/slang/emit.cpp | |
| parent | 8fe947b2fbbdaa747fb7acc7624d9290bba52086 (diff) | |
fix all unreachable code warnings
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 2e8ab58d4..af4f0ad6a 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -4667,7 +4667,7 @@ emitDeclImpl(decl, nullptr); if(!isDigit(c)) { SLANG_UNEXPECTED("bad name mangling"); - return 0; + UNREACHABLE_RETURN(0); } get(); @@ -4700,7 +4700,7 @@ emitDeclImpl(decl, nullptr); if(count > (end_ - cursor_)) { SLANG_UNEXPECTED("bad name mangling"); - return result; + UNREACHABLE_RETURN(result); } result = UnownedStringSlice(cursor_, cursor_ + count); |
