[all-commits] [llvm/llvm-project] 1d0972: [Sema] Introduce MaximumAlignment value, to be use...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Fri Jan 24 06:50:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d0972ff5eab544579c400ee674d5c9c60391ee1
      https://github.com/llvm/llvm-project/commit/1d0972ff5eab544579c400ee674d5c9c60391ee1
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2020-01-24 (Fri, 24 Jan 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/CXX/drs/dr6xx.cpp
    M clang/test/Sema/attr-aligned.c

  Log Message:
  -----------
  [Sema] Introduce MaximumAlignment value, to be used instead of magical constants

There is llvm::Value::MaximumAlignment, which is numerically
equivalent to these constants, but we can't use it directly
because we can't include llvm IR headers in clang Sema.
So instead, copy-paste the constant, and fixup the places to use it.

This was initially reviewed in https://reviews.llvm.org/D72998




More information about the All-commits mailing list