File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,13 @@ namespace swift {
31
31
32
32
using AAResultBase::getModRefInfo;
33
33
llvm::ModRefInfo getModRefInfo (const llvm::CallBase *Call,
34
- const llvm::MemoryLocation &Loc);
34
+ const llvm::MemoryLocation &Loc) {
35
+ llvm::AAQueryInfo AAQI;
36
+ return getModRefInfo (Call, Loc, AAQI);
37
+ }
38
+ llvm::ModRefInfo getModRefInfo (const llvm::CallBase *Call,
39
+ const llvm::MemoryLocation &Loc,
40
+ llvm::AAQueryInfo &AAQI);
35
41
};
36
42
37
43
class SwiftAAWrapperPass : public llvm ::ImmutablePass {
Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ static ModRefInfo getConservativeModRefForKind(const llvm::Instruction &I) {
33
33
}
34
34
35
35
ModRefInfo SwiftAAResult::getModRefInfo (const llvm::CallBase *Call,
36
- const llvm::MemoryLocation &Loc) {
36
+ const llvm::MemoryLocation &Loc,
37
+ llvm::AAQueryInfo &AAQI) {
37
38
// We know at compile time that certain entry points do not modify any
38
39
// compiler-visible state ever. Quickly check if we have one of those
39
40
// instructions and return if so.
40
41
if (ModRefInfo::NoModRef == getConservativeModRefForKind (*Call))
41
42
return ModRefInfo::NoModRef;
42
43
43
44
// Otherwise, delegate to the rest of the AA ModRefInfo machinery.
44
- AAQueryInfo AAQI;
45
45
return AAResultBase::getModRefInfo (Call, Loc, AAQI);
46
46
}
47
47
You can’t perform that action at this time.
0 commit comments