Can't this be fixed by moving the call of `CGM.getCXXABI().setThunkLinkage` in `CodeGenVTables::emitThunk` to `CodeGenFunction::GenerateThunk` right after the call to `CGM.setFunctionLinkage`? http://reviews.llvm.org/D10829 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/