Instead of creating two variables, wouldn't it be better to just remove the
second definition and clear m_ec? You don't need to use both error codes
side by side, as the second usage of m_ec occurs after the first one is
finished. So you could remove the second definition and call clear() on it,
to reset it. I think that way is clearer then introducing one new variable,
no?
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to