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/lower.cpp | |
| parent | 8fe947b2fbbdaa747fb7acc7624d9290bba52086 (diff) | |
fix all unreachable code warnings
Diffstat (limited to 'source/slang/lower.cpp')
| -rw-r--r-- | source/slang/lower.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/lower.cpp b/source/slang/lower.cpp index 0f16a8ad7..429ebbc97 100644 --- a/source/slang/lower.cpp +++ b/source/slang/lower.cpp @@ -424,7 +424,7 @@ static SourceLoc getPosition(LoweredExpr const& expr) case LoweredExpr::Flavor::VaryingTuple: return expr.getVaryingTupleExpr()->loc; default: SLANG_UNREACHABLE("all cases handled"); - return SourceLoc(); + UNREACHABLE_RETURN(SourceLoc()); } } @@ -902,7 +902,7 @@ struct LoweringVisitor default: SLANG_UNREACHABLE("all cases handled"); - return LoweredExpr(); + UNREACHABLE_RETURN(LoweredExpr()); } } |
