<div dir="ltr">You're right, thanks. Remove in r234881.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 5:50 PM, Mingjie Xing <span dir="ltr"><<a href="mailto:mingjie.xing@gmail.com" target="_blank">mingjie.xing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Look at the last call statement "Init.get();" in the following<br>
function, in file lib/Sema/SemaInit.cpp. It seems useless.<br>
<br>
ExprResult<br>
Sema::PerformCopyInitialization(const InitializedEntity &Entity,<br>
SourceLocation EqualLoc,<br>
ExprResult Init,<br>
bool TopLevelOfInitList,<br>
bool AllowExplicit) {<br>
if (Init.isInvalid())<br>
return ExprError();<br>
<br>
Expr *InitE = Init.get();<br>
assert(InitE && "No initialization expression?");<br>
<br>
if (EqualLoc.isInvalid())<br>
EqualLoc = InitE->getLocStart();<br>
<br>
InitializationKind Kind = InitializationKind::CreateCopy(InitE->getLocStart(),<br>
EqualLoc,<br>
AllowExplicit);<br>
InitializationSequence Seq(*this, Entity, Kind, InitE, TopLevelOfInitList);<br>
Init.get();<br>
<br>
ExprResult Result = Seq.Perform(*this, Entity, Kind, InitE);<br>
<br>
return Result;<br>
}<br>
<br>
Mingjie<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>