llvm.org GIT mirror llvm / 0fd5dc0
Fix a typo in rL265762 I accidentally replaced `mayBeOverridden` with `!isInterposable`. Remove the negation and add a test case that would've caught this. Many thanks to Håkan Hjort for spotting this! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266551 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjoy Das 4 years ago
2 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
639639 }
640640
641641 if (GlobalAlias *GA = dyn_cast(P)) {
642 if (!GA->isInterposable())
642 if (GA->isInterposable())
643643 return false;
644644 Worklist.push_back(GA->getAliasee());
645645 continue;
33
44 @f.a = private unnamed_addr constant [1 x i32] [i32 12], align 4
55 @f.b = private unnamed_addr constant [1 x i32] [i32 55], align 4
6 @f.c = linkonce unnamed_addr alias [1 x i32], [1 x i32]* @f.b
67
78 define signext i32 @test1(i32 signext %x) #0 {
89 entry:
4344 ; CHECK: getelementptr inbounds [1 x i32], [1 x i32]* %p, i64 0, i64 0
4445 }
4546
47 define signext i32 @test4(i32 signext %x, i1 %y) #0 {
48 entry:
49 %idxprom = sext i32 %x to i64
50 %arrayidx = getelementptr inbounds [1 x i32], [1 x i32]* @f.c, i64 0, i64 %idxprom
51 %0 = load i32, i32* %arrayidx, align 4
52 ret i32 %0
53
54 ; CHECK-LABEL: @test4
55 ; CHECK: getelementptr inbounds [1 x i32], [1 x i32]* @f.c, i64 0, i64 %idxprom
56 }
57
4658 attributes #0 = { nounwind readnone }
4759