Fixes the Atomic implementation if compiled by MSVC compiler.
authorOscar Fuentes <ofv@wanadoo.es>
Mon, 7 Dec 2009 05:29:59 +0000 (05:29 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Mon, 7 Dec 2009 05:29:59 +0000 (05:29 +0000)
commitbcc2e45840941752ae54cf91c0abb013fbc19178
tree73c65c1ebedcf50a6e978cf77178e8bfd452457c
parent7e572eb37f1ddb4c9c165354f48692d4cd66affa
Fixes the Atomic implementation if compiled by MSVC compiler.

sys::cas_flag should be long on this platform, InterlockedAdd() is
defined only for the Itanium architecture (according to MSDN).

Patch by Michael Beck!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90748 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/System/Atomic.h
lib/System/Atomic.cpp