summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/IRBuilderTest.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-01-21 19:25:35 +0000
committerAdrian Prantl <aprantl@apple.com>2015-01-21 19:25:35 +0000
commit53d382fcc79253ffebc4efe95806d9902371b7dd (patch)
tree86bf44e92f050091cf268654b6fd11d50e0f3590 /llvm/unittests/IR/IRBuilderTest.cpp
parent163e4768c05acecb6fb665814202d9c6bd3def34 (diff)
downloadbcm5719-llvm-53d382fcc79253ffebc4efe95806d9902371b7dd.tar.gz
bcm5719-llvm-53d382fcc79253ffebc4efe95806d9902371b7dd.zip
Fix a compile issue on MSVC and call finalize().
llvm-svn: 226694
Diffstat (limited to 'llvm/unittests/IR/IRBuilderTest.cpp')
-rw-r--r--llvm/unittests/IR/IRBuilderTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/unittests/IR/IRBuilderTest.cpp b/llvm/unittests/IR/IRBuilderTest.cpp
index c8670f23cbe..018914da8c9 100644
--- a/llvm/unittests/IR/IRBuilderTest.cpp
+++ b/llvm/unittests/IR/IRBuilderTest.cpp
@@ -294,7 +294,9 @@ TEST_F(IRBuilderTest, DIBuilder) {
auto File = DIB.createFile("F.CBL", "/");
auto CU = DIB.createCompileUnit(dwarf::DW_LANG_Cobol74, "F.CBL", "/",
"llvm-cobol74", true, "", 0);
- auto Type = DIB.createSubroutineType(File, DIB.getOrCreateTypeArray({}));
+ auto Type =
+ DIB.createSubroutineType(File,
+ DIB.getOrCreateTypeArray(ArrayRef<Metadata*>()));
auto SP = DIB.createFunction(CU, "foo", "", File, 1, Type,
false, true, 1, 0, true, F);
EXPECT_TRUE(SP.Verify());
@@ -302,6 +304,7 @@ TEST_F(IRBuilderTest, DIBuilder) {
auto BadScope = DIB.createLexicalBlockFile(DIDescriptor(), File, 0);
I->setDebugLoc(DebugLoc::get(2, 0, BadScope));
EXPECT_FALSE(SP.Verify());
+ DIB.finalize();
}
OpenPOWER on IntegriCloud