diff options
author | John Hodge <tpg@mutabah.net> | 2018-02-18 11:30:41 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-02-18 11:30:41 +0800 |
commit | 954314365e4683317d2049a8cd76d5d75e9f4033 (patch) | |
tree | cb6e35682ec475705653a86fdb5e2558737e3978 /tools/standalone_miri/hir_sim.cpp | |
parent | 82f1e61a2560a5f7e734e434eb80f01cc9424d86 (diff) | |
download | mrust-954314365e4683317d2049a8cd76d5d75e9f4033.tar.gz |
Standalone MIRI - "atomic_store" intrinsic, Terminator::Switch, handle ! locals
Diffstat (limited to 'tools/standalone_miri/hir_sim.cpp')
-rw-r--r-- | tools/standalone_miri/hir_sim.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/standalone_miri/hir_sim.cpp b/tools/standalone_miri/hir_sim.cpp index 4ff3f191..ef6c4df1 100644 --- a/tools/standalone_miri/hir_sim.cpp +++ b/tools/standalone_miri/hir_sim.cpp @@ -5,6 +5,7 @@ #include "hir_sim.hpp" #include "module_tree.hpp" +#include "debug.hpp" //::HIR::Path::Path(::HIR::SimplePath sp) //{ @@ -21,9 +22,10 @@ size_t HIR::TypeRef::get_size(size_t ofs) const case RawType::Composite: return this->composite_type->size; case RawType::Unreachable: + LOG_BUG("Attempting to get size of an unreachable type, " << *this); case RawType::TraitObject: case RawType::Str: - throw "Invalid"; + LOG_BUG("Attempting to get size of an unsized type, " << *this); case RawType::U8: case RawType::I8: return 1; case RawType::U16: case RawType::I16: |