[llvm] r267272 - Avoid ternery statement to please g++ after r267270, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 21:23:57 PDT 2016
Author: dexonsmith
Date: Fri Apr 22 23:23:57 2016
New Revision: 267272
URL: http://llvm.org/viewvc/llvm-project?rev=267272&view=rev
Log:
Avoid ternery statement to please g++ after r267270, NFC
http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/36074
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=267272&r1=267271&r2=267272&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Fri Apr 22 23:23:57 2016
@@ -134,7 +134,9 @@ public:
}
Metadata *lookup(unsigned I) const {
- return I < MetadataPtrs.size() ? MetadataPtrs[I] : nullptr;
+ if (I < MetadataPtrs.size())
+ return MetadataPtrs[I];
+ return nullptr;
}
void shrinkTo(unsigned N) {
More information about the llvm-commits
mailing list