diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-11 20:27:40 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-11 20:27:40 +0000 |
commit | 7ad0bd54d31788c4858cffa6e203cd06260b800b (patch) | |
tree | 6c6961fdbb487b6b9b693098f2da521ccc7e5c03 /llvm/lib/IR/Verifier.cpp | |
parent | 5ad6ff76dc898d1dab1aaccee5e193dbf9e04acb (diff) | |
download | bcm5719-llvm-7ad0bd54d31788c4858cffa6e203cd06260b800b.tar.gz bcm5719-llvm-7ad0bd54d31788c4858cffa6e203cd06260b800b.zip |
DebugInfo: Make MDSubprogram::getFunction() return Constant
Change `MDSubprogram::getFunction()` and
`MDGlobalVariable::getConstant()` to return a `Constant`. Previously,
both returned `ConstantAsMetadata`.
llvm-svn: 234699
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 30fd7fd2099..a8eef378dce 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -964,11 +964,7 @@ void Verifier::visitMDSubprogram(const MDSubprogram &N) { Assert(!hasConflictingReferenceFlags(N.getFlags()), "invalid reference flags", &N); - if (!N.getFunction()) - return; - - // FIXME: Should this be looking through bitcasts? - auto *F = dyn_cast<Function>(N.getFunction()->getValue()); + auto *F = N.getFunction(); if (!F) return; |