Assume statement expressions have side effects; this gets rid of a lot

of extra warnings in the Python source.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Friedman 2008-05-27 15:24:04 +00:00
Родитель a1d642db81
Коммит 211f6adf13
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -326,6 +326,9 @@ bool Expr::hasLocalSideEffect() const {
return true; return true;
case ObjCMessageExprClass: case ObjCMessageExprClass:
return true; return true;
case StmtExprClass:
// TODO: check the inside of the statement expression
return true;
case CastExprClass: case CastExprClass:
// If this is a cast to void, check the operand. Otherwise, the result of // If this is a cast to void, check the operand. Otherwise, the result of