Skip to content

Conversation

@makslevental
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Jul 15, 2025

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-flang-openmp

Author: Maksim Levental (makslevental)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/148963.diff

1 Files Affected:

  • (modified) mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp (+1-1)
diff --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index 486935fe7341c..769aee64e1695 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -3867,7 +3867,7 @@ LogicalResult ScanOp::verify() {
 /// Verifies align clause in allocate directive
 
 LogicalResult AllocateDirOp::verify() {
-  std::optional<u_int64_t> align = this->getAlign();
+  std::optional<uint64_t> align = this->getAlign();
 
   if (align.has_value()) {
     if ((align.value() > 0) && !llvm::has_single_bit(align.value()))

@llvmbot
Copy link
Member

llvmbot commented Jul 15, 2025

@llvm/pr-subscribers-mlir-openmp

Author: Maksim Levental (makslevental)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/148963.diff

1 Files Affected:

  • (modified) mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp (+1-1)
diff --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index 486935fe7341c..769aee64e1695 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -3867,7 +3867,7 @@ LogicalResult ScanOp::verify() {
 /// Verifies align clause in allocate directive
 
 LogicalResult AllocateDirOp::verify() {
-  std::optional<u_int64_t> align = this->getAlign();
+  std::optional<uint64_t> align = this->getAlign();
 
   if (align.has_value()) {
     if ((align.value() > 0) && !llvm::has_single_bit(align.value()))

@makslevental makslevental merged commit 91d82bf into main Jul 15, 2025
11 of 13 checks passed
@makslevental makslevental deleted the users/makslevental/fix-openmp branch July 15, 2025 21:13
@raghavendhra
Copy link
Contributor

#148952 I just noticed there is an existing PR with the same fix. Thank you

@makslevental
Copy link
Contributor Author

Lol how did both of these land... oh well 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants