summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorIvan A. Kosarev <ikosarev@accesssoftek.com>2017-10-13 18:40:18 +0000
committerIvan A. Kosarev <ikosarev@accesssoftek.com>2017-10-13 18:40:18 +0000
commit0e528202b85c80b0d027d19bf82dc09ae4b7a7e3 (patch)
treed929ea170f664b7766508aecb763bfdb026fe1ca /clang/lib/CodeGen/CodeGenFunction.cpp
parent8a8d945df7aa1b1f6d13bf72691b6628068488e4 (diff)
downloadbcm5719-llvm-0e528202b85c80b0d027d19bf82dc09ae4b7a7e3.tar.gz
bcm5719-llvm-0e528202b85c80b0d027d19bf82dc09ae4b7a7e3.zip
[CodeGen] EmitPointerWithAlignment() to generate TBAA info along with LValue base info
Differential Revision: https://reviews.llvm.org/D38796 llvm-svn: 315731
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 26df45f5350..50f0d83c771 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);
}
OpenPOWER on IntegriCloud