summaryrefslogtreecommitdiff
path: root/utils/unittest
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2010-10-02 03:26:54 +0000
committerFrancois Pichet <pichet2000@gmail.com>2010-10-02 03:26:54 +0000
commit43b04fa17e2836ba6c55d1dd28f8d75dff451e70 (patch)
tree40b92bc51a3e89ea49373bce7792fefe2114d302 /utils/unittest
parentb32944d21419b7b6ba476619e703529e6c3dd646 (diff)
downloadllvm-43b04fa17e2836ba6c55d1dd28f8d75dff451e70.tar.gz
llvm-43b04fa17e2836ba6c55d1dd28f8d75dff451e70.tar.bz2
llvm-43b04fa17e2836ba6c55d1dd28f8d75dff451e70.tar.xz
Fix MSVC release mode compilation error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r--utils/unittest/UnitTestMain/TestMain.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/unittest/UnitTestMain/TestMain.cpp b/utils/unittest/UnitTestMain/TestMain.cpp
index 4e4c210fcd..805dbd8cc5 100644
--- a/utils/unittest/UnitTestMain/TestMain.cpp
+++ b/utils/unittest/UnitTestMain/TestMain.cpp
@@ -29,12 +29,12 @@ int main(int argc, char **argv) {
::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
# if defined(_MSC_VER)
::_set_error_mode(_OUT_TO_STDERR);
- ::_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
- ::_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
- ::_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
- ::_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
- ::_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
- ::_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
+ _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
+ _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
+ _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
+ _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
+ _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
+ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
# endif
# endif