[llvm] r304083 - Added braces to address gcc warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]. NFC.
    Joerg Sonnenberger via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jun 14 13:58:39 PDT 2017
    
    
  
On Sat, Jun 03, 2017 at 10:25:17PM -0700, Galina Kistanova wrote:
> Unfortunately, a do { ... } while (0) wrapper wouldn't work either. Because
> of usages like this:
> 
> ASSERT_EQ(&TestOption, Retrieved) << "Retrieved wrong option.";
That seems just wrong, wrong, wrong.
Joerg
    
    
More information about the llvm-commits
mailing list