ngctl: Fix getline loop
I misremembered when I wrote this code: getline() returns -1 on EOF, not
zero, so the loop condition and the error check are both incorrect
(though in practice getline() will never return 0).
MFC after: 3 days
Fixes: 3cbdcabf714d ("ngctl: Modernize code somewhat")
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D55487
[CIR] Handle sizeof-pack lowering: (#182973)
This is just a compile time constant, so we just have to make sure we
get the value and lower it in the correct type, otherwise this is a
fairly trivial task.
[CIR] Implement LValue SubstNonTypeTemplateParmExpr lowering (#182920)
This just lowers to the expression that is its replacement, which in
this case causes it to just be the l-value in the expression.
[CIR] Add support for globals reference variables (#182608)
These are fairly simple, particularly if they don't need special
cleanups (which is left unimplemented), but this provides init for a
global reference variable.
[CIR] Implement LValue reinterpret/const cast (#182926)
These two are very simple and call into the Rvalue code/LValue lowering
code we already had for these, but weren't exposed as top-level LValues.
This patch adds them to the list (plus adds a comment for those that
we're missing!), as well as adds a test.
[CIR] Implement basic attributes for this/arguments (#182910)
Similar to what I did for return types in #181052, this patch adds
support for 4 of the function attributes on arguments (noundef, nonnull,
dereferenceable, align). The logic for these is all pretty similar
(though SLIGHTLY different enough from eachother unfortunately), so they
are being submitted together. This handles 'this' and normal arguments.
[VPlan] Move out canNarrowOps (NFC). (#167309)
Move definition of canNarrowOps out to static function, to make it
easier to extend + generalize
PR: https://github.com/llvm/llvm-project/pull/167309
Fix test_arc_max_set and test_firstboot_checks readonly assertion
The switch from /proc/self/mountinfo parsing to statmount separated
per-mount VFS flags from filesystem-specific options. Readonly was
previously included in both mount_opts and super_opts but now only
appears in mount_opts. Update tests to check the correct field.