diff options
Diffstat (limited to 'include/llvm/Support/BinaryStreamReader.h')
-rw-r--r-- | include/llvm/Support/BinaryStreamReader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/BinaryStreamReader.h b/include/llvm/Support/BinaryStreamReader.h index d8fddde66bfa..9e16ce227ff8 100644 --- a/include/llvm/Support/BinaryStreamReader.h +++ b/include/llvm/Support/BinaryStreamReader.h @@ -198,7 +198,7 @@ public: if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) return EC; - assert(alignmentAdjustment(Bytes.data(), alignof(T)) == 0 && + assert(isAddrAligned(Align::Of<T>(), Bytes.data()) && "Reading at invalid alignment!"); Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements); |