mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-14 17:36:29 +00:00

Summary: llvm-diff incorrectly reports that there's a diff when input IR contains undef/zeroinitializer/constantvector/indirectbr. (This happens even if two identical files are given, e.g. `llvm-diff x.ll x.ll`) This is fix to the bug report https://bugs.llvm.org/show_bug.cgi?id=33623 . Reviewers: dexonsmith, rjmccall Reviewed By: rjmccall Subscribers: chenwj, mgrang, llvm-commits Differential Revision: https://reviews.llvm.org/D34856 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329957 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
236 B
LLVM
12 lines
236 B
LLVM
; Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=33623
|
|
; RUN: llvm-diff %s %s
|
|
|
|
%A = type { i64, i64 }
|
|
@_gm_ = global <2 x %A*> zeroinitializer
|
|
|
|
define void @f() {
|
|
entry:
|
|
store <2 x %A*> zeroinitializer, <2 x %A*>* @_gm_
|
|
ret void
|
|
}
|