Delete copy-ctor of MachineFrameInfo.
authorAmara Emerson <amara@apple.com>
Fri, 6 Aug 2021 06:21:08 +0000 (23:21 -0700)
committerAmara Emerson <amara@apple.com>
Fri, 6 Aug 2021 06:24:37 +0000 (23:24 -0700)
commit4fee756c75af4bb6367508626ceb5ba12bd04eb8
tree12e087412da33ae67fb5c31882e2b4bcd0a76178
parent666ee849f0778160b4660acccb796ac5bd238b2d
Delete copy-ctor of MachineFrameInfo.

I just hit a nasty bug when writing a unit test after calling MF->getFrameInfo()
without declaring the variable as a reference.

Deleting the copy-constructor also showed a place in the ARM backend which was
doing the same thing, albeit it didn't impact correctness there from the looks of it.
llvm/include/llvm/CodeGen/MachineFrameInfo.h
llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp