summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-02-17 18:33:38 +0000
committerDan Gohman <gohman@apple.com>2012-02-17 18:33:38 +0000
commit9017b846d41282c81d3cb28a4e4946fd70a51203 (patch)
tree7fafa8be3a2224fc5da1e8dff3e87d4e835d6f36 /llvm/lib/Analysis/BasicAliasAnalysis.cpp
parent905c952efae9c60690a001c9737249de6fc03f61 (diff)
downloadbcm5719-llvm-9017b846d41282c81d3cb28a4e4946fd70a51203.tar.gz
bcm5719-llvm-9017b846d41282c81d3cb28a4e4946fd70a51203.zip
Remove a comment about an alternative approach that wouldn't
actually work, at least as described. LLVM Metadata is not intended to suppress LLVM IR rules, as it can be stripped at any time. llvm-svn: 150821
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/BasicAliasAnalysis.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index 568983ae65d..a831cf2846a 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -977,10 +977,7 @@ BasicAliasAnalysis::aliasGEP(const GEPOperator *GEP1, uint64_t V1Size,
//
// TODO: Returning PartialAlias instead of MayAlias is a mild hack; the
// practical effect of this is protecting TBAA in the case of dynamic
- // indices into arrays of unions. An alternative way to solve this would
- // be to have clang emit extra metadata for unions and/or union accesses.
- // A union-specific solution wouldn't handle the problem for malloc'd
- // memory however.
+ // indices into arrays of unions or malloc'd memory.
return PartialAlias;
}
OpenPOWER on IntegriCloud