// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
func use<T>(_ t: T) {}

public func f(_ i : Int?)
{
  // CHECK: define {{.*}}@_TF4main1fFGSqSi_T_
  // CHECK: %[[PHI:.*]] = phi
  // The shadow copy store should not have a location.
  // CHECK: store i64 %[[PHI]], i64* %val.addr, align 8, !dbg ![[DBG0:.*]]
  // CHECK: @llvm.dbg.declare(metadata i64* %val.addr, {{.*}}, !dbg ![[DBG1:.*]]
  // CHECK: ![[DBG0]] = !DILocation(line: 0,
  // CHECK: ![[DBG1]] = !DILocation(line: [[@LINE+1]],
  guard let val = i else { return }
  use(val)
}

// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
func use<T>(_ t: T) {}

public func f(_ i : Int?)
{
  // CHECK: define {{.*}}@_TF4main1fFGSqSi_T_
  // CHECK: %[[PHI:.*]] = phi
  // The shadow copy store should not have a location.
  // CHECK: store {{(i32|i64)}} %[[PHI]], {{(i32|i64)}}* %val.addr, align {{(4|8)}}, !dbg ![[DBG0:.*]]
  // CHECK: @llvm.dbg.declare(metadata {{(i32|i64)}}* %val.addr, {{.*}}, !dbg ![[DBG1:.*]]
  // CHECK: ![[DBG0]] = !DILocation(line: 0,
  // CHECK: ![[DBG1]] = !DILocation(line: [[@LINE+1]],
  guard let val = i else { return }
  use(val)
}

Use the exact bitwidth integer for this test.
Use the exact bitwidth integer for this test.

Fixes a regression in the test suite introduced in #3347 on 32-bit
architectures.
