[PATCH] SemaDeclCXX.cpp: Make -Wglobal-constructors more forgiving.

Yury Gribov tetra2005 at gmail.com
Thu Jan 22 22:46:28 PST 2015


> You can't know that all compilers will optimize this away, can you?


Sure, even Clang won't optimize this at -O0. Basically this patch weakens the check to make a common programming idiom warning-free.


http://reviews.llvm.org/D7122

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list