Trunk build failure

On the trunk I am getting some errors which are killing the rest of the build:

2>Atomic.cpp(49) : error C2664: 'InterlockedCompareExchange' : cannot
convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile
LONG *'
2> Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
2>Atomic.cpp(62) : error C2664: 'InterlockedIncrement' : cannot
convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile
LONG *'
2> Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
2>Atomic.cpp(75) : error C2664: 'InterlockedDecrement' : cannot
convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile
LONG *'
2> Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
2>Atomic.cpp(88) : error C3861: 'InterlockedAdd': identifier not found

OvermindDL1 <overminddl1@gmail.com> writes:

On the trunk I am getting some errors which are killing the rest of
the build:

2>Atomic.cpp(49) : error C2664: 'InterlockedCompareExchange' : cannot
convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile
LONG *'

Which VC++ version are you using?

Please file a bug report with all relevant information.

In the meantime, if you can't wait until the problem is fixed,
re-invoke cmake passing -DLLVM_ENABLE_THREADS=OFF

[snip]

OvermindDL1 <overminddl1@gmail.com> writes:

On the trunk I am getting some errors which are killing the rest of
the build:

Just committed a related patch. Please update and see if the problem is
fixed.