-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
810b485
commit fee07c4
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1124,7 +1124,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, | |
/// This is a temporary measure to avoid the bug that arises from overwriting | ||
/// local variables on different loop passes. | ||
Expr* forwardCond = cond.getExpr(); | ||
if (condVarRes.getExpr() && isa<Expr>(condVarRes.getExpr())) { | ||
if (condVarRes.getExpr() != nullptr && isa<Expr>(condVarRes.getExpr())) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
PetroZarytskyi
Author
Collaborator
|
||
forwardCond = BuildOp(BO_Comma, cond.getExpr(), cast<Expr>(condVarRes.getExpr())); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shouldn’t that be isa_or_null?