BitcodeReader: Use getMD/getMDOrNull helpers consistently, almost NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 23 Apr 2016 03:55:14 +0000 (03:55 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 23 Apr 2016 03:55:14 +0000 (03:55 +0000)
commit004509dca1948c69808f1a4682a8f62b2987e78e
tree37c48657406af4ad74a8c78df4877d17aaa2b413
parent6e6a1f0a5bb5434ddc8e94868c8fc19990ff76f4
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
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/IR/DebugInfoMetadata.cpp