<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 23, 2014 at 6:10 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank" class="cremed">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">================<br>
Comment at: lib/Frontend/CompilerInvocation.cpp:569<br>
@@ +568,3 @@<br>
+      Opts.OptimizationRemarkAnalysisPattern) {<br>
+    if (Opts.getDebugInfo() == CodeGenOptions::NoDebugInfo)<br>
+      Opts.setDebugInfo(CodeGenOptions::LocTrackingOnly);<br>
----------------<br>
You could roll these two 'if's together, if you like. (if ((x || y || z) && A == B)<br>
<br>
Is there some more general check you could do for "OptimizationRemark" overall rather than having to check these 3 flags individually (& then have to update this ewhenever other similar flags are added?)<br>
</blockquote><div><br></div><div>Done.</div></div></div></div>