Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Unified Diff: tools/llvm-dis/llvm-dis.cpp

Issue 770853002: Fix error reporting in the PNaCl bitcode reader. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Fix typo. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/IRReader/IRReader.cpp ('k') | tools/llvm-nm/llvm-nm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/llvm-dis/llvm-dis.cpp
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index bdce91184a377f36175d2469ce0b2109b2d1be0d..6beced365b98b2a77083ca2c334fb18f7a516f2b 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-dis.cpp
@@ -160,10 +160,12 @@ int main(int argc, char **argv) {
M.reset(getStreamedBitcodeModule(
DisplayFilename, Buffer.release(), Context, &ErrorMessage));
break;
- case PNaClFormat:
+ case PNaClFormat: {
M.reset(getNaClStreamedBitcodeModule(
- DisplayFilename, Buffer.release(), Context, &ErrorMessage));
+ DisplayFilename, Buffer.release(), Context, nullptr,
+ &ErrorMessage));
break;
+ }
default:
ErrorMessage = "Don't understand specified bitcode format";
break;
« no previous file with comments | « lib/IRReader/IRReader.cpp ('k') | tools/llvm-nm/llvm-nm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698