[ASan/Win] Fix lint warning

llvm-svn: 154111
This commit is contained in:
Timur Iskhodzhanov 2012-04-05 18:31:50 +00:00
parent d84cec07c9
commit 7d2776960b
2 changed files with 5 additions and 5 deletions

View File

@ -335,10 +335,10 @@ LLVM_LINT_FILTER=-,+whitespace
ADDRESS_SANITIZER_CPP=../../../../lib/Transforms/Instrumentation/AddressSanitizer.cpp
lint:
third_party/cpplint/cpplint.py --filter=$(LLVM_LINT_FILTER) $(ADDRESS_SANITIZER_CPP)
third_party/cpplint/cpplint.py --filter=$(RTL_LINT_FITLER) asan_*.cc asan_*.h
third_party/cpplint/cpplint.py --filter=$(RTL_LINT_FITLER) interception/interception*.h interception/interception*.cc
third_party/cpplint/cpplint.py --filter=$(TEST_LINT_FITLER) tests/*.cc output_tests/*.cc
python third_party/cpplint/cpplint.py --filter=$(LLVM_LINT_FILTER) $(ADDRESS_SANITIZER_CPP)
python third_party/cpplint/cpplint.py --filter=$(RTL_LINT_FITLER) asan_*.cc asan_*.h
python third_party/cpplint/cpplint.py --filter=$(RTL_LINT_FITLER) interception/interception*.h interception/interception*.cc
python third_party/cpplint/cpplint.py --filter=$(TEST_LINT_FITLER) tests/*.cc output_tests/*.cc
get_third_party:
rm -rf third_party

View File

@ -241,7 +241,7 @@ uint16_t AtomicExchange(uint16_t *a, uint16_t new_val) {
__asm {
mov eax, a
mov cx, new_val
xchg [eax], cx
xchg [eax], cx ; NOLINT
mov new_val, cx
}
return new_val;