r212291 - Make a small crash preventing change.
Fariborz Jahanian
fjahanian at apple.com
Thu Jul 3 14:06:20 PDT 2014
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.
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.
More information about the cfe-commits
mailing list