Skip to content

Commit f363c54

Browse files
compnerdgottesmm
authored andcommitted
[upstream-update] update AA interface usage
SVN r262490 reformulated the Alias Analysis interfaces. The TLI is no longer needed to construct the AA Result. Because the TLI was used specifically for the base constructor, we now no longer need that option. Simplify it according to the new API. NFC. (cherry picked from commit 12dc8a8) (cherry picked from commit 270a4c2)
1 parent bdac088 commit f363c54

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/swift/LLVMPasses/Passes.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ namespace swift {
2222
struct SwiftAAResult : llvm::AAResultBase<SwiftAAResult> {
2323
friend llvm::AAResultBase<SwiftAAResult>;
2424

25-
explicit SwiftAAResult(const llvm::TargetLibraryInfo &TLI)
26-
: AAResultBase(TLI) {}
25+
explicit SwiftAAResult() : AAResultBase() {}
2726
SwiftAAResult(SwiftAAResult &&Arg)
2827
: AAResultBase(std::move(Arg)) {}
2928

lib/LLVMPasses/LLVMSwiftAA.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ SwiftAAWrapperPass::SwiftAAWrapperPass() : ImmutablePass(ID) {
7272
}
7373

7474
bool SwiftAAWrapperPass::doInitialization(Module &M) {
75-
Result.reset(new SwiftAAResult(
76-
getAnalysis<TargetLibraryInfoWrapperPass>().getTLI()));
75+
Result.reset(new SwiftAAResult());
7776
return false;
7877
}
7978

0 commit comments

Comments
 (0)