[lld][LayoutPass] Fix a bug that caused buildbot to fail on some platforms.