This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Add default constructor of `llvm::ElementCount`.
ClosedPublic

Authored by fpetrogalli on Aug 19 2020, 1:00 PM.

Details

Summary

This patch prevents failures like those reported in
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/34173.

We have enabled the default constructor for
llvm::ElementCount to make sure the code compiles on Windows.

Diff Detail

Event Timeline

fpetrogalli created this revision.Aug 19 2020, 1:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2020, 1:00 PM
fpetrogalli requested review of this revision.Aug 19 2020, 1:00 PM

I re-enabled the default contructor so that the code actually builds on linux.

This builds on Windows. Do the comments need to be updated?

fpetrogalli retitled this revision from [llvm] Do not delete default constructor of `llvm::ElementCount`. to [llvm] Add default constructor of `llvm::ElementCount`..Aug 19 2020, 1:53 PM
fpetrogalli edited the summary of this revision. (Show Details)
fpetrogalli edited the summary of this revision. (Show Details)

This builds on Windows. Do the comments need to be updated?

Done. I'll submit this as soon as you give me a formal OK.

Thanks!

Francesco

ormris accepted this revision.Aug 19 2020, 2:14 PM

LGTM

This revision is now accepted and ready to land.Aug 19 2020, 2:14 PM
This revision was landed with ongoing or failed builds.Aug 19 2020, 2:40 PM
This revision was automatically updated to reflect the committed changes.