[PATCH] D10815: Fix enum BitcodeError to not define 0.

Jan Voung jvoung at chromium.org
Fri Jul 10 12:46:21 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL241933: Fix enum BitcodeError to not define a zero-valued error code. (authored by jvoung).

Changed prior to commit:
  http://reviews.llvm.org/D10815?vs=28708&id=29474#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D10815

Files:
  llvm/trunk/include/llvm/Bitcode/ReaderWriter.h

Index: llvm/trunk/include/llvm/Bitcode/ReaderWriter.h
===================================================================
--- llvm/trunk/include/llvm/Bitcode/ReaderWriter.h
+++ llvm/trunk/include/llvm/Bitcode/ReaderWriter.h
@@ -146,7 +146,7 @@
   }
 
   const std::error_category &BitcodeErrorCategory();
-  enum class BitcodeError { InvalidBitcodeSignature, CorruptedBitcode };
+  enum class BitcodeError { InvalidBitcodeSignature = 1, CorruptedBitcode };
   inline std::error_code make_error_code(BitcodeError E) {
     return std::error_code(static_cast<int>(E), BitcodeErrorCategory());
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10815.29474.patch
Type: text/x-patch
Size: 596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150710/14a64cd2/attachment.bin>


More information about the llvm-commits mailing list