r212291 - Make a small crash preventing change.
Saleem Abdulrasool
compnerd at compnerd.org
Thu Jul 3 19:15:18 PDT 2014
On Thu, Jul 3, 2014 at 2:06 PM, Fariborz Jahanian <fjahanian at apple.com>
wrote:
> Author: fjahanian
> Date: Thu Jul 3 16:06:20 2014
> New Revision: 212291
>
> URL: http://llvm.org/viewvc/llvm-project?rev=212291&view=rev
> Log:
> Make a small crash preventing change.
>
Test case? Does this result in less useful diagnostics somewhere?
>
> Modified:
> cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp
>
> Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp?rev=212291&r1=212290&r2=212291&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp (original)
> +++ cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp Thu Jul 3 16:06:20 2014
> @@ -2036,8 +2036,8 @@ Sema::InstantiateClass(SourceLocation Po
> Expr *Init = NewInit.get();
> assert((!Init || !isa<ParenListExpr>(Init)) &&
> "call-style init in class");
> - ActOnFinishCXXInClassMemberInitializer(NewField,
> Init->getLocStart(),
> - Init);
> + ActOnFinishCXXInClassMemberInitializer(NewField,
> + Init ? Init->getLocStart() : SourceLocation(), Init);
> }
> }
> // Instantiate late parsed attributes, and attach them to their decls.
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
--
Saleem Abdulrasool
compnerd (at) compnerd (dot) org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140703/cd8b4e7d/attachment.html>
More information about the cfe-commits
mailing list