[llvm] 2291413 - [NFC] Apply the fix for different signedness warning in OpenMPIRBuilderTest.cpp
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 18:51:42 PST 2022
Author: Peixin-Qiao
Date: 2022-01-14T10:49:21+08:00
New Revision: 2291413554ff33b0718ff99cca9aea2a09ba3a40
URL: https://github.com/llvm/llvm-project/commit/2291413554ff33b0718ff99cca9aea2a09ba3a40
DIFF: https://github.com/llvm/llvm-project/commit/2291413554ff33b0718ff99cca9aea2a09ba3a40.diff
LOG: [NFC] Apply the fix for different signedness warning in OpenMPIRBuilderTest.cpp
Differential Revision: https://reviews.llvm.org/D116300
Added:
Modified:
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
index 7e3613be8a15..4a75a8aed4e6 100644
--- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
@@ -2267,7 +2267,7 @@ TEST_F(OpenMPIRBuilderTest, OrderedDirectiveDependSource) {
ASSERT_NE(StoreValue, nullptr);
EXPECT_EQ(StoreValue->getValueOperand(), StoreValues[Iter]);
EXPECT_EQ(StoreValue->getPointerOperand(), DependAddrGEPIter);
- EXPECT_EQ(StoreValue->getAlignment(), 8);
+ EXPECT_EQ(StoreValue->getAlignment(), 8UL);
IterInst = dyn_cast<Instruction>(StoreValue);
}
@@ -2352,7 +2352,7 @@ TEST_F(OpenMPIRBuilderTest, OrderedDirectiveDependSink) {
ASSERT_NE(StoreValue, nullptr);
EXPECT_EQ(StoreValue->getValueOperand(), StoreValues[Iter]);
EXPECT_EQ(StoreValue->getPointerOperand(), DependAddrGEPIter);
- EXPECT_EQ(StoreValue->getAlignment(), 8);
+ EXPECT_EQ(StoreValue->getAlignment(), 8UL);
IterInst = dyn_cast<Instruction>(StoreValue);
}
More information about the llvm-commits
mailing list