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 | ed141bab630026a6109acc89556dd8ff3eaee504 (patch) | |
tree | e59c276f26db097ff62ae194542ad754325e720a /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 5bfbfb48b5e92b2cdd6832b09051ac41c6549534 (diff) | |
download | bcm5719-llvm-ed141bab630026a6109acc89556dd8ff3eaee504.tar.gz bcm5719-llvm-ed141bab630026a6109acc89556dd8ff3eaee504.zip |
[CodeGen] EmitPointerWithAlignment() to generate TBAA info along with LValue base info
Differential Revision: https://reviews.llvm.org/D38796
llvm-svn: 315984
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index ac8ae953738..b6f8770f510 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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); } |