[PATCH] D58462: Fixing NDEBUG typo in include/llvm/Support/raw_ostream.h

Puyan Lotfi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 20 10:13:39 PST 2019


plotfi created this revision.
plotfi added a reviewer: bogner.
Herald added subscribers: llvm-commits, kristina.
Herald added a project: LLVM.

NDEBUG is misspelled as NDBEBUG in include/llvm/Support/raw_ostream.h.


Repository:
  rL LLVM

https://reviews.llvm.org/D58462

Files:
  include/llvm/Support/raw_ostream.h


Index: include/llvm/Support/raw_ostream.h
===================================================================
--- include/llvm/Support/raw_ostream.h
+++ include/llvm/Support/raw_ostream.h
@@ -345,7 +345,7 @@
   explicit raw_pwrite_stream(bool Unbuffered = false)
       : raw_ostream(Unbuffered) {}
   void pwrite(const char *Ptr, size_t Size, uint64_t Offset) {
-#ifndef NDBEBUG
+#ifndef NDEBUG
     uint64_t Pos = tell();
     // /dev/null always reports a pos of 0, so we cannot perform this check
     // in that case.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58462.187612.patch
Type: text/x-patch
Size: 523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190220/105f3bb6/attachment.bin>


More information about the llvm-commits mailing list