[PATCH] D49209: CodeGen: specify alignment for automatic variable initialization
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 11 17:34:57 PDT 2018
efriedma added inline comments.
================
Comment at: lib/CodeGen/CGDecl.cpp:902
+ Builder.CreateAlignedStore(
+ Init, Loc, Loc->getPointerAlignment(CGM.getDataLayout()), isVolatile);
return;
----------------
llvm::Value::getPointerAlignment is not the right way to compute the alignment (it tries to guess the alignment based on the IR). Please convert this to use a clang::CodeGen::Address instead.
Repository:
rC Clang
https://reviews.llvm.org/D49209
More information about the cfe-commits
mailing list