<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- else if (const ConstantExpr *CE = getMergedGlobalExpr(N->getOperand(11))) {<br>
+ dyn_cast_or_null<ConstantInt>(GV.getConstant())) {<br>
+ // AT_const_value was added when the static memeber was created. To avoid<br>
+ // emitting AT_const_value multiple times, we only add AT_const_value when<br>
+ // it is not a static member.<br>
+ if (!IsStaticMember)<br>
+ addConstantValue(VariableDIE, CI, GTy.isUnsignedDIType());<br>
+ } else if (const ConstantExpr *CE = getMergedGlobalExpr(N->getOperand(11))) {<br> </blockquote><div><br></div><div style>No need for the parens anymore I don't think?</div><div style><br></div><div style>Also, if you can add into the testcase where you reduced it from if you can't provide C source.</div>
<div style><br></div><div style>Thanks!</div><div style><br></div><div style>-eric </div></div></div></div>