diff options
author | Craig Topper <craig.topper@intel.com> | 2020-05-18 12:41:36 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-05-18 13:28:46 -0700 |
commit | c9f63297e24a1b29c2236ac2e2d1afd96b83114e (patch) | |
tree | 91f6015caeb993eea8ea8c93a4cb51a5b57a88ae /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b783f70a42575a5d9147bea1ac97e872370fe55b (diff) | |
download | llvm-c9f63297e24a1b29c2236ac2e2d1afd96b83114e.zip llvm-c9f63297e24a1b29c2236ac2e2d1afd96b83114e.tar.gz llvm-c9f63297e24a1b29c2236ac2e2d1afd96b83114e.tar.bz2 |
Fix several places that were calling verifyFunction or verifyModule without checking the return value.
verifyFunction/verifyModule don't assert or error internally. They
also don't print anything if you don't pass a raw_ostream to them.
So the caller needs to check the result and ideally pass a stream
to get the messages. Otherwise they're just really expensive no-ops.
I've filed PR45965 for another instance in SLPVectorizer
that causes a lit test failure.
Differential Revision: https://reviews.llvm.org/D80106
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions