aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2018-08-31 04:55:01 -0300
committerReinUsesLisp <[email protected]>2018-08-31 04:55:01 -0300
commit45555c0e570b24409e19c9cb0cbfb0866f897d3d (patch)
tree83ea6402eaa8d0c5f460b129baa462c4545ee224 /tests
parent4fe98c2902d514cd2ed220301618b468e754bcc7 (diff)
downloadsirit-45555c0e570b24409e19c9cb0cbfb0866f897d3d.tar.gz
sirit-45555c0e570b24409e19c9cb0cbfb0866f897d3d.zip
OpName returns its target
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index f7542c0..03fee83 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -51,9 +51,8 @@ public:
Constant(TypeFloat(32), Literal(50.0f))});
ConstantNull(TypeVector(TypeInt(64, false), 4));
- auto cont{Label()};
- auto skip{Label()};
- Name(skip, "skip");
+ auto cont{Name(Label(), "cont")};
+ auto skip{Name(Label(), "skip")};
auto main_type{TypeFunction(TypeVoid())};
auto main_func{Emit(Function(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))};
Emit(Label());