[GISel]: Avoid zero length array when building Instrs that don't have
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Wed, 26 Jul 2017 19:58:03 +0000 (19:58 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Wed, 26 Jul 2017 19:58:03 +0000 (19:58 +0000)
commite469a6f55017c667c635741ddb4aad2bb1f4f4f5
treec918cd0fba9befd124ca922fdd36aea172ca874f
parentaaa8e433ad1b7e1cde458085bd8eb945445b20c8
[GISel]: Avoid zero length array when building Instrs that don't have
uses.

Also splitting the buildSources part allows more overloads such as
adding MachineOperands directly in the arguments for buildInstr.

llvm-svn: 309163
llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h