Make test more flexible for when the variable is renamed in the generated LLVM IR. [NFC]

This commit is contained in:
Douglas Yung 2020-03-23 22:03:21 -07:00
parent 20d704a75e
commit e79b1ab65b
1 changed files with 2 additions and 2 deletions

View File

@ -717,8 +717,8 @@ if.end:
; CHECK-LABEL: @common_addrspacecast(
; CHECK: %. = select i1 %flag, i32 9, i32 10
; CHECK: %a = addrspacecast i32* %x to i32 addrspace(1)*
; CHECK: store i32 %., i32 addrspace(1)* %a
; CHECK: %[[a:.*]] = addrspacecast i32* %x to i32 addrspace(1)*
; CHECK: store i32 %., i32 addrspace(1)* %[[a]]
define i32 @common_addrspacecast(i1 zeroext %flag, i32* %x) {
entry:
br i1 %flag, label %if.then, label %if.else