diff options
| author | Francois Pichet <pichet2000@gmail.com> | 2010-10-02 03:26:54 +0000 |
|---|---|---|
| committer | Francois Pichet <pichet2000@gmail.com> | 2010-10-02 03:26:54 +0000 |
| commit | 8cbc86e91245edfedf0f6153f5a673feb0eabc98 (patch) | |
| tree | a331b119e74d0a5ecf7bc55d6aec071a6d392816 | |
| parent | 6e0637994a95b8ad3d57693af9bc89fcc829be38 (diff) | |
| download | bcm5719-llvm-8cbc86e91245edfedf0f6153f5a673feb0eabc98.tar.gz bcm5719-llvm-8cbc86e91245edfedf0f6153f5a673feb0eabc98.zip | |
Fix MSVC release mode compilation error.
llvm-svn: 115407
| -rw-r--r-- | llvm/utils/unittest/UnitTestMain/TestMain.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/utils/unittest/UnitTestMain/TestMain.cpp b/llvm/utils/unittest/UnitTestMain/TestMain.cpp index 4e4c210fcd2..805dbd8cc51 100644 --- a/llvm/utils/unittest/UnitTestMain/TestMain.cpp +++ b/llvm/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 |

