Move getLocStart() in Sema::ConvertArgumentsForCall

Keno Fischer kfischer at college.harvard.edu
Tue Mar 18 21:44:22 PDT 2014


Sema::ConvertArgumentsForCall calls setNumArgs on the CallExpr. This
changes the result of getLocStart if the SourceLocation stored in the
CallExpr is invalid and in that case may lead to an assertion failure. This
quick patch fixes that.

I don't have commit access so let me know if anything else is needed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140319/e9f2b69c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LocStartFix.patch
Type: application/octet-stream
Size: 998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140319/e9f2b69c/attachment.obj>


More information about the cfe-commits mailing list