Permalink
Browse files

Compiler: fix a bug creating some valgrind warnings about invalid reads

  • Loading branch information...
1 parent 8d79dd8 commit fc9faa16462c6657e295ebbf547cd2fe77a4fccc @Blei Blei committed Dec 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compiler/analyzer.cpp
View
@@ -2601,7 +2601,7 @@ static StatementAnalysis analyzeStatement(StatementPtr stmt, EnvPtr env, Analysi
return SA_RECURSIVE;
}
- MultiPValue *cond = analyzeExpr(x->condition, env2).ptr();
+ MultiPValuePtr cond = analyzeExpr(x->condition, env2);
if (cond->values.size() != 1) {
arityError(1, cond->values.size());

0 comments on commit fc9faa1

Please sign in to comment.