diff options
author | Hal Finkel <hfinkel@anl.gov> | 2017-12-03 03:10:13 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2017-12-03 03:10:13 +0000 |
commit | a5986b9e91be95771a034b5efe400e99149f919c (patch) | |
tree | 6661a2270eb6f0e6bec286a186f18b382c23349e /clang/lib/CodeGen/CodeGenModule.h | |
parent | f3470e1ed4f6322711f6fc059b834d2ce0094c2b (diff) | |
download | bcm5719-llvm-a5986b9e91be95771a034b5efe400e99149f919c.tar.gz bcm5719-llvm-a5986b9e91be95771a034b5efe400e99149f919c.zip |
Revert "[CodeGen] Add initial support for union members in TBAA"
This reverts commit r319413. See PR35503.
We can't use "union member" as the access type here like this.
llvm-svn: 319629
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index ff9866a3696..8b142933a7d 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -688,9 +688,8 @@ public: /// getTBAAInfoForSubobject - Get TBAA information for an access with a given /// base lvalue. TBAAAccessInfo getTBAAInfoForSubobject(LValue Base, QualType AccessType) { - TBAAAccessInfo TBAAInfo = Base.getTBAAInfo(); - if (TBAAInfo.isMayAlias() || TBAAInfo.isUnionMember()) - return TBAAInfo; + if (Base.getTBAAInfo().isMayAlias()) + return TBAAAccessInfo::getMayAliasInfo(); return getTBAAAccessInfo(AccessType); } |