[PATCH] Invariants (and Assume Aligned) - Clang

hfinkel at anl.gov hfinkel at anl.gov
Sat Jul 12 20:25:53 PDT 2014


Use +llvm::Value::MaximumAlignment in Sema to force evaluation and prevent errors like this (in Debug builds):
  libclang.so: undefined reference to `llvm::Value::MaximumAlignment'
(which is the same thing that is done in lib/Transforms/Utils/Local.cpp)

http://reviews.llvm.org/D149

Files:
  docs/LanguageExtensions.rst
  include/clang/Basic/Builtins.def
  include/clang/Sema/Sema.h
  lib/AST/ExprConstant.cpp
  lib/CodeGen/CGBuiltin.cpp
  lib/Sema/SemaChecking.cpp
  test/CodeGen/builtin-assume-aligned.c
  test/CodeGen/builtin-assume.c
  test/Sema/builtin-assume-aligned-tmpl.cpp
  test/Sema/builtin-assume-aligned.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149.11341.patch
Type: text/x-patch
Size: 12515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140713/3c4f027e/attachment.bin>


More information about the cfe-commits mailing list