Correct misleading formatting of several ifs followed by two statements without braces.
authorYaron Keren <yaron.keren@gmail.com>
Sat, 2 Jan 2016 13:40:36 +0000 (13:40 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sat, 2 Jan 2016 13:40:36 +0000 (13:40 +0000)
commit8e6708e2461e61fb667164c7dac9a6bd83e65d6c
tree9e80ffd778a8d1a3c0401629bf47d34d29514a07
parent71d29c18dce9d4bd7c35a902eb51152331bebec0
Correct misleading formatting of several ifs followed by two statements without braces.
While the original code would work with or without braces, it makes sense to
set HaveSemi to true only if (!HaveSemi), otherwise it's already true, so I
put the assignment inside the if block. This addresses PR25998.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256688 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineInstr.cpp