[PATCH] D68942: [Alignment][NFC] Move and type functions from MathExtras to Alignment
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 05:56:29 PDT 2019
courbet accepted this revision.
courbet added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/unittests/Support/AlignmentTest.cpp:212
+ const void *forgedAddr() const {
+ return reinterpret_cast<const void *>(offset);
+ }
----------------
Add comment: `// A value of any integral or enumeration type can be converted to a pointer type.`
I had to check to verify that this was legal.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68942/new/
https://reviews.llvm.org/D68942
More information about the llvm-commits
mailing list