NVPTX: Fold otherwise unused variable into assert.

Avoids unused variable warnings in release builds.