Merge remote-tracking branch 'origin/swift-4.0-branch' into stable

* origin/swift-4.0-branch:
  Avoid VarDecl emission attempt if no owning module avaiable