This is an archive of the discontinued LLVM Phabricator instance.

Prevent copy of AttrBuilder
ClosedPublic

Authored by serge-sans-paille on Dec 20 2021, 5:34 AM.

Details

Summary

It's a relatively heavy data structure, make sure it's not copied.

Diff Detail

Event Timeline

serge-sans-paille requested review of this revision.Dec 20 2021, 5:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2021, 5:34 AM
nikic accepted this revision.Dec 20 2021, 5:56 AM

LG

llvm/include/llvm/IR/Attributes.h
947

nit: const AttrBuilder & would be more typical.

llvm/lib/IR/Verifier.cpp
3317

nit: Extra space after &.

This revision is now accepted and ready to land.Dec 20 2021, 5:56 AM
This revision was landed with ongoing or failed builds.Dec 20 2021, 7:33 AM
This revision was automatically updated to reflect the committed changes.