From 10b929720a8701ef2a960f5b45e39d7a999cca41 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 17 Feb 2016 16:53:14 -0800 Subject: overload wasm printing in std namespace --- test/example/find_div0s.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/example/find_div0s.cpp') diff --git a/test/example/find_div0s.cpp b/test/example/find_div0s.cpp index e74d4781f..dc2872edc 100644 --- a/test/example/find_div0s.cpp +++ b/test/example/find_div0s.cpp @@ -46,8 +46,7 @@ int main() { // Check if the right operand is a constant, and if it is 0 auto right = curr->right->dyn_cast(); if (right && right->value.getInteger() == 0) { - std::cout << "We found that "; - printWasm(curr->left, std::cout) << " is divided by zero\n"; + std::cout << "We found that " << curr->left << " is divided by zero\n"; } } } -- cgit v1.2.3