mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 10:36:07 +00:00
Removed dead variable "hadError" in ParseReturnStmt.
llvm-svn: 41079
This commit is contained in:
parent
676070d503
commit
c48affb81f
@ -324,8 +324,7 @@ Sema::ParseReturnStmt(SourceLocation ReturnLoc, ExprTy *rex) {
|
||||
// function return.
|
||||
AssignmentCheckResult result = CheckSingleAssignmentConstraints(lhsType,
|
||||
RetValExp);
|
||||
bool hadError = false;
|
||||
|
||||
|
||||
// decode the result (notice that extensions still return a type).
|
||||
switch (result) {
|
||||
case Compatible:
|
||||
@ -334,7 +333,6 @@ Sema::ParseReturnStmt(SourceLocation ReturnLoc, ExprTy *rex) {
|
||||
Diag(ReturnLoc, diag::err_typecheck_return_incompatible,
|
||||
lhsType.getAsString(), rhsType.getAsString(),
|
||||
RetValExp->getSourceRange());
|
||||
hadError = true;
|
||||
break;
|
||||
case PointerFromInt:
|
||||
// check for null pointer constant (C99 6.3.2.3p3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user