mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
might be deliberate "one time" leaks, so that leak checkers can find them. This is a reapply of r160602 with the fix that this time I'm committing the code I thought I was committing last time; the I->eraseFromParent() goes *after* the break out of the loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160664 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
344 B
LLVM
20 lines
344 B
LLVM
; RUN: opt -globalopt -S -o - < %s | FileCheck %s
|
|
|
|
@test1 = internal global i8* null
|
|
|
|
define void @test1a() {
|
|
; CHECK: @test1a
|
|
; CHECK-NOT: store
|
|
; CHECK-NEXT: ret void
|
|
store i8* null, i8** @test1
|
|
ret void
|
|
}
|
|
|
|
define void @test1b(i8* %p) {
|
|
; CHECK: @test1b
|
|
; CHECK-NEXT: store
|
|
; CHECK-NEXT: ret void
|
|
store i8* %p, i8** @test1
|
|
ret void
|
|
}
|