Index: runtime/vm/os_thread_macos.cc |
diff --git a/runtime/vm/os_thread_macos.cc b/runtime/vm/os_thread_macos.cc |
index 827f74925763b78ab6886403d8577c876c1fa41a..e7c7c90878908369333f7b1a7915f411cf01fdd7 100644 |
--- a/runtime/vm/os_thread_macos.cc |
+++ b/runtime/vm/os_thread_macos.cc |
@@ -161,7 +161,8 @@ ThreadJoinId OSThread::GetCurrentThreadJoinId() { |
void OSThread::Join(ThreadJoinId id) { |
- ASSERT(pthread_join(id, NULL) == 0); |
+ int result = pthread_join(id, NULL); |
+ ASSERT(result == 0); |
} |