Fix compiler error in r351311

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@351315 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/runtime/src/ompt-general.cpp b/runtime/src/ompt-general.cpp
index 595bf55..cea00ff 100644
--- a/runtime/src/ompt-general.cpp
+++ b/runtime/src/ompt-general.cpp
@@ -491,7 +491,7 @@
 
 OMPT_API_ROUTINE int ompt_get_state(ompt_wait_id_t *wait_id) {
   if (!ompt_enabled.enabled)
-    return omp_state_work_serial;
+    return ompt_state_work_serial;
   int thread_state = __ompt_get_state_internal(wait_id);
 
   if (thread_state == ompt_state_undefined) {