Commit 45bdca2f authored by Hans Wennborg's avatar Hans Wennborg
Browse files

Merging r322160:

------------------------------------------------------------------------
r322160 | hahnfeld | 2018-01-10 00:10:23 -0800 (Wed, 10 Jan 2018) | 5 lines

[OMPT] Fix cast and printf of wait_id in lock test

This didn't work on 32 bit platforms.

Differential Revision: https://reviews.llvm.org/D41853
------------------------------------------------------------------------

llvm-svn: 322640
parent 1515bfe4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ int main()
    print_ids(0);

  omp_lock_t lock;
  printf("%" PRIu64 ": &lock: %lli\n", ompt_get_thread_data()->value, (long long) &lock);
  printf("%" PRIu64 ": &lock: %" PRIu64 "\n", ompt_get_thread_data()->value, (uint64_t) &lock);
  omp_init_lock(&lock);
  print_current_address(1);
  omp_set_lock(&lock);