Skip to content

Commit 7d3382c

Browse files
authored
Merge pull request #21778 from bob-wilson/llvm-r350503
master-next: Adjust for LLVM r350503
2 parents 18bab3e + 8c2f7a3 commit 7d3382c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

include/swift/LLVMPasses/Passes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace swift {
3030
const llvm::PreservedAnalyses &) { return false; }
3131

3232
using AAResultBase::getModRefInfo;
33-
llvm::ModRefInfo getModRefInfo(llvm::ImmutableCallSite CS,
33+
llvm::ModRefInfo getModRefInfo(const llvm::CallBase *Call,
3434
const llvm::MemoryLocation &Loc);
3535
};
3636

lib/LLVMPasses/LLVMSwiftAA.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ static ModRefInfo getConservativeModRefForKind(const llvm::Instruction &I) {
3232
llvm_unreachable("Not a valid Instruction.");
3333
}
3434

35-
ModRefInfo SwiftAAResult::getModRefInfo(llvm::ImmutableCallSite CS,
35+
ModRefInfo SwiftAAResult::getModRefInfo(const llvm::CallBase *Call,
3636
const llvm::MemoryLocation &Loc) {
3737
// We know at compile time that certain entry points do not modify any
3838
// compiler-visible state ever. Quickly check if we have one of those
3939
// instructions and return if so.
40-
if (ModRefInfo::NoModRef ==
41-
getConservativeModRefForKind(*CS.getInstruction()))
40+
if (ModRefInfo::NoModRef == getConservativeModRefForKind(*Call))
4241
return ModRefInfo::NoModRef;
4342

4443
// Otherwise, delegate to the rest of the AA ModRefInfo machinery.
45-
return AAResultBase::getModRefInfo(CS, Loc);
44+
return AAResultBase::getModRefInfo(Call, Loc);
4645
}
4746

4847
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)