This is an archive of the discontinued LLVM Phabricator instance.

[AVR] Migrate to new StructType::get owing to Supress all uses of LLVM_END_WITH_NULL
ClosedPublic

Authored by xiangzhai on May 12 2017, 1:38 AM.

Details

Summary

Hi LLVM developers,

After https://reviews.llvm.org/D32541

static Constant *get(StructType *T, ...) LLVM_END_WITH_NULL;

has been changed to

template <typename... Csts>
  static typename std::enable_if<are_base_of<Constant, Csts...>::value,
                                 Constant *>::type
  get(StructType *T, Csts *... Vs) {
    SmallVector<Constant *, 8> Values{{Vs...}};
    return get(T, Values);
  }

so it doesn't need to end with nullptr any more, then I simply removed nullptr to fix the build issue for AVR backend, please review my patch, thanks a lot!

Regards,
Leslie Zhai

Diff Detail

Repository
rL LLVM

Event Timeline

xiangzhai created this revision.May 12 2017, 1:38 AM
This revision is now accepted and ready to land.May 12 2017, 2:17 AM
This revision was automatically updated to reflect the committed changes.