mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -977,10 +977,7 @@ BasicAliasAnalysis::aliasGEP(const GEPOperator *GEP1, uint64_t V1Size,
|
|||||||
//
|
//
|
||||||
// TODO: Returning PartialAlias instead of MayAlias is a mild hack; the
|
// TODO: Returning PartialAlias instead of MayAlias is a mild hack; the
|
||||||
// practical effect of this is protecting TBAA in the case of dynamic
|
// practical effect of this is protecting TBAA in the case of dynamic
|
||||||
// indices into arrays of unions. An alternative way to solve this would
|
// indices into arrays of unions or malloc'd memory.
|
||||||
// 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.
|
|
||||||
return PartialAlias;
|
return PartialAlias;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user