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