view test/Transforms/MergeFunc/2013-01-10-MergeFuncAssert.ll @ 52:c22698ecb2a9

modified CreateIdentifierInfo and create new function which was named 'CreateUniqueIdentifierInfo'.
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Wed, 15 Jan 2014 21:01:33 +0900
parents 95c75e76d11b
children
line wrap: on
line source

; RUN: opt -mergefunc -disable-output < %s
; This used to trigger a ConstantExpr::getBitCast assertion.

define void @t1() unnamed_addr uwtable ssp align 2 {
entry:
  switch i32 undef, label %sw.bb12 [
    i32 127, label %sw.bb
    i32 126, label %sw.bb4
  ]

sw.bb:                                            ; preds = %entry
  unreachable

sw.bb4:                                           ; preds = %entry
  unreachable

sw.bb12:                                          ; preds = %entry
  ret void
}

define void @t2() unnamed_addr uwtable ssp align 2 {
entry:
  switch i32 undef, label %sw.bb8 [
    i32 4, label %sw.bb
    i32 3, label %sw.bb4
  ]

sw.bb:                                            ; preds = %entry
  unreachable

sw.bb4:                                           ; preds = %entry
  ret void

sw.bb8:                                           ; preds = %entry
  unreachable
}