summaryrefslogtreecommitdiff
path: root/tools/standalone_miri/main.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-05-19 13:29:22 +0800
committerJohn Hodge <tpg@mutabah.net>2018-05-19 13:29:22 +0800
commitd97d3a3e9fedb73c612fae542db28626a687ab22 (patch)
tree87f361feabd1afcee45af5fb24502ca477742884 /tools/standalone_miri/main.cpp
parenta96b446e80f109138e2a639ec94222017af0b9b1 (diff)
downloadmrust-d97d3a3e9fedb73c612fae542db28626a687ab22.tar.gz
Standalone MIRI - Remove direct uses of TypeRef.wrappers
Diffstat (limited to 'tools/standalone_miri/main.cpp')
-rw-r--r--tools/standalone_miri/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/standalone_miri/main.cpp b/tools/standalone_miri/main.cpp
index e3a8d22e..90b5eff3 100644
--- a/tools/standalone_miri/main.cpp
+++ b/tools/standalone_miri/main.cpp
@@ -62,9 +62,7 @@ int main(int argc, const char* argv[])
// Construct argc/argv values
auto val_argc = Value::new_isize(1 + opts.args.size());
- ::HIR::TypeRef argv_ty { RawType::I8 };
- argv_ty.wrappers.push_back(TypeWrapper { TypeWrapper::Ty::Pointer, 0 });
- argv_ty.wrappers.push_back(TypeWrapper { TypeWrapper::Ty::Pointer, 0 });
+ auto argv_ty = ::HIR::TypeRef(RawType::I8).wrap(TypeWrapper::Ty::Pointer, 0 ).wrap(TypeWrapper::Ty::Pointer, 0);
auto val_argv = Value::new_pointer(argv_ty, 0, RelocationPtr::new_alloc(argv_alloc));
// Catch various exceptions from the interpreter