forked from OSchip/llvm-project
parent
7768a30c37
commit
0e33c688d5
|
@ -972,6 +972,9 @@ bool FloatExprEvaluator::VisitCallExpr(const CallExpr *E) {
|
|||
}
|
||||
|
||||
bool FloatExprEvaluator::VisitUnaryOperator(const UnaryOperator *E) {
|
||||
if (E->getOpcode() == UnaryOperator::Deref)
|
||||
return false;
|
||||
|
||||
if (!EvaluateFloat(E->getSubExpr(), Result, Info))
|
||||
return false;
|
||||
|
||||
|
|
|
@ -45,3 +45,10 @@ int ola() {
|
|||
if ((0, (int)a) & 2) { return 1; }
|
||||
return 2;
|
||||
}
|
||||
|
||||
// this one shouldn't fold as well
|
||||
void eMaisUma() {
|
||||
double t[1];
|
||||
if (*t)
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue