summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/TrailingObjectsTest.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-10-14 13:14:34 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-10-14 13:14:34 +0000
commitce56e1a1cc5714f4af5675dd963cfebed766d9e1 (patch)
tree45c6eae172f40a05492dc6566b21e66a836e41ff /llvm/unittests/Support/TrailingObjectsTest.cpp
parent77748129650271ebd7b3f9c2c6c4f8110cb4a845 (diff)
downloadbcm5719-llvm-ce56e1a1cc5714f4af5675dd963cfebed766d9e1.tar.gz
bcm5719-llvm-ce56e1a1cc5714f4af5675dd963cfebed766d9e1.zip
[Alignment][NFC] Move and type functions from MathExtras to Alignment
Summary: This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68942 llvm-svn: 374773
Diffstat (limited to 'llvm/unittests/Support/TrailingObjectsTest.cpp')
-rw-r--r--llvm/unittests/Support/TrailingObjectsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/TrailingObjectsTest.cpp b/llvm/unittests/Support/TrailingObjectsTest.cpp
index 967f6f6a658..e2656b2229c 100644
--- a/llvm/unittests/Support/TrailingObjectsTest.cpp
+++ b/llvm/unittests/Support/TrailingObjectsTest.cpp
@@ -232,7 +232,7 @@ TEST(TrailingObjects, Realignment) {
EXPECT_EQ(C->getTrailingObjects<char>(), reinterpret_cast<char *>(C + 1));
EXPECT_EQ(C->getTrailingObjects<long>(),
reinterpret_cast<long *>(llvm::alignAddr(
- reinterpret_cast<char *>(C + 1) + 1, alignof(long))));
+ reinterpret_cast<char *>(C + 1) + 1, Align::Of<long>())));
}
}
OpenPOWER on IntegriCloud