[llvm] eeda07e - [NFC][Alignment] Use proper type in tests
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 06:00:06 PDT 2022
Author: Guillaume Chatelet
Date: 2022-06-13T12:59:38Z
New Revision: eeda07e14b3f9710a82b83e982bf2a56f5e40d1d
URL: https://github.com/llvm/llvm-project/commit/eeda07e14b3f9710a82b83e982bf2a56f5e40d1d
DIFF: https://github.com/llvm/llvm-project/commit/eeda07e14b3f9710a82b83e982bf2a56f5e40d1d.diff
LOG: [NFC][Alignment] Use proper type in tests
Added:
Modified:
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
index 2012e5b44fc9a..23421af13dedd 100644
--- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
@@ -2561,7 +2561,7 @@ TEST_F(OpenMPIRBuilderTest, OrderedDirectiveDependSource) {
ASSERT_NE(StoreValue, nullptr);
EXPECT_EQ(StoreValue->getValueOperand(), StoreValues[Iter]);
EXPECT_EQ(StoreValue->getPointerOperand(), DependAddrGEPIter);
- EXPECT_EQ(StoreValue->getAlignment(), 8UL);
+ EXPECT_EQ(StoreValue->getAlign(), Align(8));
IterInst = dyn_cast<Instruction>(StoreValue);
}
@@ -2646,7 +2646,7 @@ TEST_F(OpenMPIRBuilderTest, OrderedDirectiveDependSink) {
ASSERT_NE(StoreValue, nullptr);
EXPECT_EQ(StoreValue->getValueOperand(), StoreValues[Iter]);
EXPECT_EQ(StoreValue->getPointerOperand(), DependAddrGEPIter);
- EXPECT_EQ(StoreValue->getAlignment(), 8UL);
+ EXPECT_EQ(StoreValue->getAlign(), Align(8));
IterInst = dyn_cast<Instruction>(StoreValue);
}
More information about the llvm-commits
mailing list