llvm.org GIT mirror llvm / 8737be8
Fix a compile issue on MSVC and call finalize(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226694 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 5 years ago
1 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
293293 auto File = DIB.createFile("F.CBL", "/");
294294 auto CU = DIB.createCompileUnit(dwarf::DW_LANG_Cobol74, "F.CBL", "/",
295295 "llvm-cobol74", true, "", 0);
296 auto Type = DIB.createSubroutineType(File, DIB.getOrCreateTypeArray({}));
296 auto Type =
297 DIB.createSubroutineType(File,
298 DIB.getOrCreateTypeArray(ArrayRef()));
297299 auto SP = DIB.createFunction(CU, "foo", "", File, 1, Type,
298300 false, true, 1, 0, true, F);
299301 EXPECT_TRUE(SP.Verify());
301303 auto BadScope = DIB.createLexicalBlockFile(DIDescriptor(), File, 0);
302304 I->setDebugLoc(DebugLoc::get(2, 0, BadScope));
303305 EXPECT_FALSE(SP.Verify());
304 }
305
306
307 }
306 DIB.finalize();
307 }
308
309
310 }