summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/VerifierTest.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2018-11-19 18:29:28 +0000
committerPaul Robinson <paul.robinson@sony.com>2018-11-19 18:29:28 +0000
commitcda5421016f67236f60bbc1ba9e4e847e6dbeb71 (patch)
tree4bd81caf1ef021ef98f84e73e902845b359170c4 /llvm/unittests/IR/VerifierTest.cpp
parent1c803f5988af77cc2d1d4ca12b9b4a3e1a094c35 (diff)
downloadbcm5719-llvm-cda5421016f67236f60bbc1ba9e4e847e6dbeb71.tar.gz
bcm5719-llvm-cda5421016f67236f60bbc1ba9e4e847e6dbeb71.zip
[DebugInfo] DISubprogram flags get their own flags word. NFC.
This will hold flags specific to subprograms. In the future we could potentially free up scarce bits in DIFlags by moving subprogram-specific flags from there to the new flags word. This patch does not change IR/bitcode formats, that will be done in a follow-up. Differential Revision: https://reviews.llvm.org/D54597 llvm-svn: 347239
Diffstat (limited to 'llvm/unittests/IR/VerifierTest.cpp')
-rw-r--r--llvm/unittests/IR/VerifierTest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/unittests/IR/VerifierTest.cpp b/llvm/unittests/IR/VerifierTest.cpp
index ac94eb102d6..53e5d6fbbe4 100644
--- a/llvm/unittests/IR/VerifierTest.cpp
+++ b/llvm/unittests/IR/VerifierTest.cpp
@@ -178,9 +178,10 @@ TEST(VerifierTest, DetectInvalidDebugInfo) {
"f", FunctionType::get(Type::getVoidTy(C), false)));
IRBuilder<> Builder(BasicBlock::Create(C, "", F));
Builder.CreateUnreachable();
- F->setSubprogram(DIB.createFunction(CU, "f", "f",
- DIB.createFile("broken.c", "/"), 1,
- nullptr, true, true, 1));
+ F->setSubprogram(DIB.createFunction(
+ CU, "f", "f", DIB.createFile("broken.c", "/"), 1, nullptr, 1,
+ DINode::FlagZero,
+ DISubprogram::SPFlagLocalToUnit | DISubprogram::SPFlagDefinition));
DIB.finalize();
EXPECT_FALSE(verifyModule(M));
OpenPOWER on IntegriCloud