llvm.org GIT mirror llvm / 186399b
IR: Fix GCC error from MDLocation::getInlinedAt() Apparently GCC didn't like my ternary operator from r225824. Use an `if`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225826 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan P. N. Exon Smith 5 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
856856 unsigned getColumn() const { return SubclassData16; }
857857 Metadata *getScope() const { return getOperand(0); }
858858 Metadata *getInlinedAt() const {
859 return getNumOperands() == 2 ? getOperand(1) : nullptr;
859 if (getNumOperands() == 2)
860 return getOperand(1);
861 return nullptr;
860862 }
861863
862864 static bool classof(const Metadata *MD) {