File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/unittests/Target/SPIRV Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ class SPIRVAPITest : public testing::Test {
3636 const std::vector<std::string> &AllowExtNames,
3737 const std::vector<std::string> &Opts) {
3838 SMDiagnostic ParseError;
39- M = parseAssemblyString (Assembly, ParseError, Context);
39+ LLVMContext Context;
40+ std::unique_ptr<Module> M =
41+ parseAssemblyString (Assembly, ParseError, Context);
4042 if (!M) {
4143 ParseError.print (" IR parsing failed: " , errs ());
4244 report_fatal_error (" Can't parse input assembly." );
@@ -48,9 +50,6 @@ class SPIRVAPITest : public testing::Test {
4850 return Status;
4951 }
5052
51- LLVMContext Context;
52- std::unique_ptr<Module> M;
53-
5453 static constexpr StringRef ExtensionAssembly = R"(
5554 define dso_local spir_func void @test1() {
5655 entry:
You can’t perform that action at this time.
0 commit comments