From d5f20dbce0479afb761b9e40017b4c528dcdfbb9 Mon Sep 17 00:00:00 2001 From: daadaada Date: Sat, 9 Oct 2021 12:40:20 +0800 Subject: [PATCH] [IR] Fix error when building in debug mode (#331) --- lib/ir/print.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ir/print.cc b/lib/ir/print.cc index f63c81587..db73ec7d9 100644 --- a/lib/ir/print.cc +++ b/lib/ir/print.cc @@ -126,7 +126,7 @@ void SlotTracker::create_function_slot(const value *v) { } int SlotTracker::get_local_slot(const value *v) { - assert(dynamic_cast(v) == nullptr && "Can't get a constant slot"); + assert(dynamic_cast(v) == nullptr && "Can't get a constant slot"); // Check for uninitialized state and do lazy initialization. initialize_if_needed();