mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
fix PR6305 by handling BlockAddress in a helper function
called by jump threading. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -313,3 +313,14 @@ for.cond: ; preds = %for.body, %lor.end
|
||||
for.body: ; preds = %for.cond
|
||||
br label %for.cond
|
||||
}
|
||||
|
||||
|
||||
; PR6305
|
||||
define void @test11() nounwind {
|
||||
entry:
|
||||
br label %A
|
||||
|
||||
A: ; preds = %entry
|
||||
call void undef(i64 ptrtoint (i8* blockaddress(@test11, %A) to i64)) nounwind
|
||||
unreachable
|
||||
}
|
||||
|
Reference in New Issue
Block a user