diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2019-04-02 14:00:36 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2019-04-02 14:00:36 +0000 |
commit | 68ad5c34e076475cf5691ead29c1ae6515272b75 (patch) | |
tree | 43a296a31e94960a268a6c3bd144ed6269cf0eb6 | |
parent | 4cefa15a149e60296e4fb24cce483b5630a4d168 (diff) | |
download | bcm5719-llvm-68ad5c34e076475cf5691ead29c1ae6515272b75.tar.gz bcm5719-llvm-68ad5c34e076475cf5691ead29c1ae6515272b75.zip |
Fix typo that I introduced in r357413. Thanks to ensadc@mailnesia.com for the catch.
llvm-svn: 357474
-rw-r--r-- | libcxx/src/chrono.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/src/chrono.cpp b/libcxx/src/chrono.cpp index 1758e6ca2f3..c1eb67b61d7 100644 --- a/libcxx/src/chrono.cpp +++ b/libcxx/src/chrono.cpp @@ -195,7 +195,8 @@ steady_clock::now() _NOEXCEPT { static const LARGE_INTEGER freq = __QueryPerformanceFrequency(); - LARGE_INTEGER counter = __QueryPerformanceFrequency(); + LARGE_INTEGER counter; + (void) QueryPerformanceCounter(&counter); return time_point(duration(counter.QuadPart * nano::den / freq.QuadPart)); } |