summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfoMetadata.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-23 03:55:14 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-23 03:55:14 +0000
commit004509dca1948c69808f1a4682a8f62b2987e78e (patch)
tree37c48657406af4ad74a8c78df4877d17aaa2b413 /llvm/lib/IR/DebugInfoMetadata.cpp
parent6e6a1f0a5bb5434ddc8e94868c8fc19990ff76f4 (diff)
downloadbcm5719-llvm-004509dca1948c69808f1a4682a8f62b2987e78e.tar.gz
bcm5719-llvm-004509dca1948c69808f1a4682a8f62b2987e78e.zip
BitcodeReader: Use getMD/getMDOrNull helpers consistently, almost NFC
The only functionality change was removing an error check from the BitcodeReader (and an assertion from DILocation::getImpl) that is already caught by Verifier::visitDILocation. The Verifier is a better place for this anyway, and being inconsistent with other subclasses of MDNode isn't serving anyone. llvm-svn: 267267
Diffstat (limited to 'llvm/lib/IR/DebugInfoMetadata.cpp')
-rw-r--r--llvm/lib/IR/DebugInfoMetadata.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfoMetadata.cpp b/llvm/lib/IR/DebugInfoMetadata.cpp
index 3475971d348..2c9873078c4 100644
--- a/llvm/lib/IR/DebugInfoMetadata.cpp
+++ b/llvm/lib/IR/DebugInfoMetadata.cpp
@@ -45,7 +45,6 @@ DILocation *DILocation::getImpl(LLVMContext &Context, unsigned Line,
// Fixup column.
adjustColumn(Column);
- assert(Scope && "Expected scope");
if (Storage == Uniqued) {
if (auto *N =
getUniqued(Context.pImpl->DILocations,
OpenPOWER on IntegriCloud