From e9d057d097f3875be50bba44d874e66ad71e40f2 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 7 Aug 2016 11:27:30 -0700 Subject: fix compilation error on recent clang --- src/wasm-traversal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wasm-traversal.h b/src/wasm-traversal.h index f4483644c..b69db1ea2 100644 --- a/src/wasm-traversal.h +++ b/src/wasm-traversal.h @@ -460,9 +460,9 @@ struct ControlFlowWalker : public PostWalker { Index i = controlFlowStack.size() - 1; while (1) { auto* curr = controlFlowStack[i]; - if (Block* block = curr->dynCast()) { + if (Block* block = curr->template dynCast()) { if (name == block->name) return curr; - } else if (Loop* loop = curr->dynCast()) { + } else if (Loop* loop = curr->template dynCast()) { if (name == loop->name) return curr; } else { WASM_UNREACHABLE(); -- cgit v1.2.3