Add compiler barrier to select