Move getLocStart() in Sema::ConvertArgumentsForCall

Keno Fischer kfischer at
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: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LocStartFix.patch
Type: application/octet-stream
Size: 998 bytes
Desc: not available
URL: <>

More information about the cfe-commits mailing list