Fix dangling pointer when the first instruction in a function is a upc load/store and the function contains at least two loads/stores.