diff options
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()); } } |
