diff options
| author | Eric Liu <ioeric@google.com> | 2018-07-11 08:16:47 +0000 |
|---|---|---|
| committer | Eric Liu <ioeric@google.com> | 2018-07-11 08:16:47 +0000 |
| commit | 867b0e41fe3fda89eaa83921de0d466afed44e5e (patch) | |
| tree | 7a58f8e294625cc5284ad48a383c07baaaadc57e /llvm/lib/Target | |
| parent | 8299e4b8dbe34e7986ba99db554956800aded4b0 (diff) | |
| download | bcm5719-llvm-867b0e41fe3fda89eaa83921de0d466afed44e5e.tar.gz bcm5719-llvm-867b0e41fe3fda89eaa83921de0d466afed44e5e.zip | |
[WebAssembly] Only call llvm::value::dump() in debug build.
This fixes compile error in r336759. llvm::value::dump is not available
in released build.
llvm-svn: 336770
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp index 91b0b4aac2b..4af9cd150bf 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp @@ -123,7 +123,9 @@ bool WebAssemblyAddMissingPrototypes::runOnModule(Module &M) { Replacements.emplace_back(&F, NewF); } else { dbgs() << *U.getUser()->getType() << "\n"; +#ifndef NDEBUG U.getUser()->dump(); +#endif report_fatal_error( "unexpected use of prototypeless function: " + F.getName() + "\n"); } |

