diff options
| author | Ivan A. Kosarev <ikosarev@accesssoftek.com> | 2017-10-17 09:12:13 +0000 |
|---|---|---|
| committer | Ivan A. Kosarev <ikosarev@accesssoftek.com> | 2017-10-17 09:12:13 +0000 |
| commit | 6fe0ba5b2e9fe50cf172acb437f879fbd0ef99bc (patch) | |
| tree | 79be5e250f9693278cd5f89aee5828213b9fb3b6 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | fe8249cb5c936a6f1c0990923044319d283a9624 (diff) | |
| download | clang-6fe0ba5b2e9fe50cf172acb437f879fbd0ef99bc.tar.gz | |
[CodeGen] EmitPointerWithAlignment() to generate TBAA info along with LValue base info
Differential Revision: https://reviews.llvm.org/D38796
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index ac8ae95373..b6f8770f51 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -118,9 +118,9 @@ CodeGenFunction::~CodeGenFunction() { } CharUnits CodeGenFunction::getNaturalPointeeTypeAlignment(QualType T, - LValueBaseInfo *BaseInfo) { - return getNaturalTypeAlignment(T->getPointeeType(), BaseInfo, - /* TBAAInfo= */ nullptr, + LValueBaseInfo *BaseInfo, + TBAAAccessInfo *TBAAInfo) { + return getNaturalTypeAlignment(T->getPointeeType(), BaseInfo, TBAAInfo, /* forPointeeType= */ true); } |
