[IR] Fix compilation errors.