diff options
author | Karl Schimpf <kschimpf@google.com> | 2013-09-09 15:17:13 -0700 |
---|---|---|
committer | Karl Schimpf <kschimpf@google.com> | 2013-09-09 15:17:13 -0700 |
commit | 12b849f6a7ba9cdd1e7b27a7b23aa0e073942fe0 (patch) | |
tree | 307793e65089448be73ca3dcb96416b749a01926 | |
parent | e97dae781c3e7ebd30e05e6ead5a32a86e5b8455 (diff) |
Allow PNaCl version 2 to be supported and readabile.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3590
R=jvoung@chromium.org
Review URL: https://codereview.chromium.org/23924004
-rw-r--r-- | lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp b/lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp index 37b79ad3d8..06f346e331 100644 --- a/lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp +++ b/lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp @@ -246,9 +246,9 @@ void NaClBitcodeHeader::InstallFields() { if (NaClBitcodeHeaderField *Version = GetPNaClVersionPtr(this)) { PNaClVersion = Version->GetUInt32Value(); } - if (PNaClVersion != 1) { + if (PNaClVersion > 2) { IsSupportedFlag = false; - IsReadableFlag = (PNaClVersion == 2); + IsReadableFlag = false; UpdatedUnsupportedMessage = true; UnsupportedMessage.clear(); raw_string_ostream UnsupportedStream(UnsupportedMessage); |