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
This commit is contained in:
Dan Gohman 2012-02-17 18:33:38 +00:00
parent 905c952efa
commit 9017b846d4
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}