[LLVMdev] [PATCH] Prevent clang from throwing the diagnostics twice.

Chad Rosier mcrosier at codeaurora.org
Fri Nov 15 12:08:20 PST 2013


> As Chad pointed, it's likely that this requires a non-trivial
> refactoring. I don't have particularly bright ideas on solving it, but
> I'm uncomfortable adding the flag at the arg level because it kind of
> encourages lazy design when handling args. Perhaps looking into ways
> the code could be refactored so that getOptimizationLevel() is only
> called once (and perhaps the results get cached somewhere) would be a
> good approach.

I completely agree with you, Aaron.

 Chad




More information about the cfe-commits mailing list