[Clang] [NFC] Inline static helper function in `Compilation.cpp` (#152875)
This PR inlines the static `InputsOk` function in clang
`Compilation.cpp` driver, because it was just a simple function call and
was called only once. In addition, inlining it allows removing the
double negation.