summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-20 02:32:02 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-20 02:32:02 +0000
commit81fdde5d0e48808e9523e70bd15cb0d991dbdc7a (patch)
treec3e4dfd3716c8b8dd9c3b3436d1bf5798d76668e
parentef66ff78ca83598927566ccf0fae834ddb3ed743 (diff)
downloadbcm5719-llvm-81fdde5d0e48808e9523e70bd15cb0d991dbdc7a.tar.gz
bcm5719-llvm-81fdde5d0e48808e9523e70bd15cb0d991dbdc7a.zip
[PM] Fix a contradiction in the comments noticed by Anders.
Have I mentioned that functions returning true on error and false on success are confusing? They're more confusing when their name is "verify". Anyways... llvm-svn: 199622
-rw-r--r--llvm/include/llvm/IR/Verifier.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/Verifier.h b/llvm/include/llvm/IR/Verifier.h
index f5d8945ea06..0f146e6936d 100644
--- a/llvm/include/llvm/IR/Verifier.h
+++ b/llvm/include/llvm/IR/Verifier.h
@@ -34,14 +34,14 @@ class raw_ostream;
/// pass.
///
/// If there are no errors, the function returns false. If an error is found,
-/// a message describing the error is written to OS (if non-null) and false is
+/// a message describing the error is written to OS (if non-null) and true is
/// returned.
bool verifyFunction(const Function &F, raw_ostream *OS = 0);
/// \brief Check a module for errors.
///
/// If there are no errors, the function returns false. If an error is found,
-/// a message describing the error is written to OS (if non-null) and false is
+/// a message describing the error is written to OS (if non-null) and true is
/// returned.
bool verifyModule(const Module &M, raw_ostream *OS = 0);
OpenPOWER on IntegriCloud