Skip to content

[mlir] Fix u_int64_t in OpenMPDialect.cpp #148963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025

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.

3 participants