forked from OSchip/llvm-project
IR: Fix GCC error from MDLocation::getInlinedAt()
Apparently GCC didn't like my ternary operator from r225824. Use an `if`. llvm-svn: 225826
This commit is contained in:
parent
56109b78c7
commit
5dc16e05d2
|
@ -857,7 +857,9 @@ public:
|
|||
unsigned getColumn() const { return SubclassData16; }
|
||||
Metadata *getScope() const { return getOperand(0); }
|
||||
Metadata *getInlinedAt() const {
|
||||
return getNumOperands() == 2 ? getOperand(1) : nullptr;
|
||||
if (getNumOperands() == 2)
|
||||
return getOperand(1);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static bool classof(const Metadata *MD) {
|
||||
|
|
Loading…
Reference in New Issue