Fun fact: cl.exe refuses to compile this program:
#include
void f(std::vector v) {
for (int i : v)
do {} while(false);
}
¯\_(ツ)_/¯
On Fri, Jan 22, 2016 at 10:49 AM, Nico Weber via cfe-commits <
cfe-commits@lists.llvm.org> wrote:
> Author: nico
> Date: Fri Jan 22 09:49:53 2016
> New Revis
Author: nico
Date: Fri Jan 22 09:49:53 2016
New Revision: 258505
URL: http://llvm.org/viewvc/llvm-project?rev=258505&view=rev
Log:
Try to pacify MSVC.
I'm not sure why it needs these braces, but they help locally.
Modified:
cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
Modified: cfe/tru