Fix some -Wextra warnings
Fixed a bug in IRState::attributes.