[libcxx-commits] [libcxx] r357474 - Fix typo that I introduced in r357413. Thanks to ensadc at mailnesia.com for the catch.
Marshall Clow via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 2 07:00:36 PDT 2019
Author: marshall
Date: Tue Apr 2 07:00:36 2019
New Revision: 357474
URL: http://llvm.org/viewvc/llvm-project?rev=357474&view=rev
Log:
Fix typo that I introduced in r357413. Thanks to ensadc at mailnesia.com for the catch.
Modified:
libcxx/trunk/src/chrono.cpp
Modified: libcxx/trunk/src/chrono.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/chrono.cpp?rev=357474&r1=357473&r2=357474&view=diff
==============================================================================
--- libcxx/trunk/src/chrono.cpp (original)
+++ libcxx/trunk/src/chrono.cpp Tue Apr 2 07:00:36 2019
@@ -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));
}
More information about the libcxx-commits
mailing list