diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-07-14 17:53:53 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-07-14 17:53:53 +0800 |
commit | 0d5fe417e6ff1806987f77c97b0841b0b600cde0 (patch) | |
tree | bf8ee10c655858254e7905ef943178988f7bc50a /tools/standalone_miri/hir_sim.cpp | |
parent | bee6b04dc12e50a33eb382b2c12276b91ae32493 (diff) | |
download | mrust-0d5fe417e6ff1806987f77c97b0841b0b600cde0.tar.gz |
standalone_miri - Fix after MIR refactor
Diffstat (limited to 'tools/standalone_miri/hir_sim.cpp')
-rw-r--r-- | tools/standalone_miri/hir_sim.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/standalone_miri/hir_sim.cpp b/tools/standalone_miri/hir_sim.cpp index 88739730..085c045f 100644 --- a/tools/standalone_miri/hir_sim.cpp +++ b/tools/standalone_miri/hir_sim.cpp @@ -249,7 +249,7 @@ HIR::TypeRef HIR::TypeRef::get_field(size_t idx, size_t& ofs) const if( w->type == TypeWrapper::Ty::Slice ) { // TODO - throw "TODO"; + LOG_TODO("Field on slice - " << *this << " #" << idx); } else if( w->type == TypeWrapper::Ty::Array ) { @@ -260,7 +260,7 @@ HIR::TypeRef HIR::TypeRef::get_field(size_t idx, size_t& ofs) const } else { - throw "ERROR"; + LOG_ERROR("Field on unknown wrapper type - " << *this << " #" << idx); } } else @@ -273,8 +273,7 @@ HIR::TypeRef HIR::TypeRef::get_field(size_t idx, size_t& ofs) const } else { - ::std::cerr << *this << " doesn't have fields" << ::std::endl; - throw "ERROR"; + LOG_ERROR(*this << " doesn't have fields"); } } } |