mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
Create enums for the different attributes.
We use the enums to query whether an Attributes object has that attribute. The opaque layer is responsible for knowing where that specific attribute is stored. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -327,12 +327,12 @@ getLoadLoadClobberFullWidthSize(const Value *MemLocBase, int64_t MemLocOffs,
|
||||
return 0;
|
||||
|
||||
if (LIOffs+NewLoadByteSize > MemLocEnd &&
|
||||
LI->getParent()->getParent()->getFnAttributes().hasAddressSafetyAttr()){
|
||||
LI->getParent()->getParent()->getFnAttributes().
|
||||
hasAttribute(Attributes::AddressSafety))
|
||||
// We will be reading past the location accessed by the original program.
|
||||
// While this is safe in a regular build, Address Safety analysis tools
|
||||
// may start reporting false warnings. So, don't do widening.
|
||||
return 0;
|
||||
}
|
||||
|
||||
// If a load of this width would include all of MemLoc, then we succeed.
|
||||
if (LIOffs+NewLoadByteSize >= MemLocEnd)
|
||||
|
Reference in New Issue
Block a user