mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
6f20310e9e
This patch corresponds to review: http://reviews.llvm.org/D17712 We were not clearing the TOC vector in PPCAsmPrinter when initializing it. This caused duplicate definition asserts when the pass is reused on the module (i.e. with -compile-twice or in JIT contexts). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263338 91177308-0d34-0410-b5e6-96231b3b80d8
7 lines
205 B
LLVM
7 lines
205 B
LLVM
; RUN: llc -compile-twice -filetype obj \
|
|
; RUN: -mtriple=powerpc64le-unknown-unknown -mcpu=pwr8 < %s
|
|
@foo = common global i32 0, align 4
|
|
define i8* @blah() #0 {
|
|
ret i8* bitcast (i32* @foo to i8*)
|
|
}
|