summaryrefslogtreecommitdiff
path: root/include
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
commit3bbede5a241c1535f495d54598f385432d509d83 (patch)
treea4e7edcc4e88e5c69467456a4539aff5782d97e5 /include
parent7582d8d76f225ecbe879d6346741e925b06d1d4d (diff)
downloadllvm-3bbede5a241c1535f495d54598f385432d509d83.tar.gz
llvm-3bbede5a241c1535f495d54598f385432d509d83.tar.bz2
llvm-3bbede5a241c1535f495d54598f385432d509d83.tar.xz
[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... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Verifier.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/IR/Verifier.h b/include/llvm/IR/Verifier.h
index f5d8945ea0..0f146e6936 100644
--- a/include/llvm/IR/Verifier.h
+++ b/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);