From ce56e1a1cc5714f4af5675dd963cfebed766d9e1 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Mon, 14 Oct 2019 13:14:34 +0000 Subject: [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 --- llvm/unittests/Support/TrailingObjectsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/unittests/Support/TrailingObjectsTest.cpp') 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(), reinterpret_cast(C + 1)); EXPECT_EQ(C->getTrailingObjects(), reinterpret_cast(llvm::alignAddr( - reinterpret_cast(C + 1) + 1, alignof(long)))); + reinterpret_cast(C + 1) + 1, Align::Of()))); } } -- cgit v1.2.3