[Lldb-commits] [PATCH] D12873: Return false, not 0, for bools.

Bruce Mitchener via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 14 21:52:56 PDT 2015


brucem created this revision.
brucem added a reviewer: clayborg.
brucem added a subscriber: lldb-commits.

http://reviews.llvm.org/D12873

Files:
  source/Symbol/ClangASTContext.cpp
  source/Symbol/CompilerType.cpp

Index: source/Symbol/CompilerType.cpp
===================================================================
--- source/Symbol/CompilerType.cpp
+++ source/Symbol/CompilerType.cpp
@@ -78,7 +78,7 @@
         *size = 0;
     if (is_incomplete)
         *is_incomplete = false;
-    return 0;
+    return false;
 }
 
 bool
Index: source/Symbol/ClangASTContext.cpp
===================================================================
--- source/Symbol/ClangASTContext.cpp
+++ source/Symbol/ClangASTContext.cpp
@@ -2449,7 +2449,7 @@
         *size = 0;
     if (is_incomplete)
         *is_incomplete = false;
-    return 0;
+    return false;
 }
 
 bool


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12873.34777.patch
Type: text/x-patch
Size: 645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150915/e465d614/attachment.bin>


More information about the lldb-commits mailing list