Improve source position reporting for scatters.

Now, we only highlight the memory write--not both sides of the
assignment expression.
This commit is contained in:
Matt Pharr
2012-04-19 11:23:20 -07:00
parent 34d81fa522
commit cc26b66e99

View File

@@ -2663,6 +2663,7 @@ lEmitOpAssign(AssignExpr::Op op, Expr *arg0, Expr *arg1, const Type *type,
}
// And store the result back to the lvalue.
ctx->SetDebugPos(arg0->pos);
lStoreAssignResult(newValue, lv, resultType, lvalueType, ctx, baseSym);
return newValue;
@@ -2707,7 +2708,7 @@ AssignExpr::GetValue(FunctionEmitContext *ctx) const {
return NULL;
}
ctx->SetDebugPos(pos);
ctx->SetDebugPos(lvalue->pos);
lStoreAssignResult(value, ptr, valueType, ptrType, ctx, baseSym);