Problem using 'bitcast'

call void @llvm.dbg.declare( { }* bitcast(i32* %loc0 to { }), { } bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable1 to { }*) )

This is not legal. The distinction here is that the bitcast as an argument is
a constant expression and requires constant arguments, and %loc0 is not constant.
Introducing the temp variable is the “right way” to do this.

  • Daniel