Skip to content

Commit ab7a60e

Browse files
committed
Revert "Fix MSVC "not all control paths return a value" warnings. NFCI."
This reverts commit 7e84aa1. This is part of 5 commits being reverted due to https://crbug.com/1161059. See bug for repro.
1 parent 85d4a4b commit ab7a60e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7637,7 +7637,6 @@ static Expr *BuildExpressionFromNonTypeTemplateArgumentValue(
76377637
auto *OVE = new (S.Context) OpaqueValueExpr(Loc, T, VK);
76387638
return ConstantExpr::Create(S.Context, OVE, Val);
76397639
}
7640-
llvm_unreachable("Unhandled APValue::ValueKind enum");
76417640
}
76427641

76437642
ExprResult
@@ -7667,7 +7666,6 @@ Sema::BuildExpressionFromNonTypeTemplateArgument(const TemplateArgument &Arg,
76677666
return BuildExpressionFromNonTypeTemplateArgumentValue(
76687667
*this, Arg.getUncommonValueType(), Arg.getAsUncommonValue(), Loc);
76697668
}
7670-
llvm_unreachable("Unhandled TemplateArgument::ArgKind enum");
76717669
}
76727670

76737671
/// Match two template parameters within template parameter lists.

0 commit comments

Comments
 (0)