Fix buildbot issues for MDScope::getFile() after r230871
I hope this extra cast will make everyone happy... llvm-svn: 230872
This commit is contained in:
parent
2c6a0a905c
commit
3a46c142bf
|
@ -337,7 +337,8 @@ public:
|
|||
/// this. Otherwise, return the first operand, which is where all other
|
||||
/// subclasses store their file pointer.
|
||||
Metadata *getFile() const {
|
||||
return isa<MDFile>(this) ? const_cast<MDScope *>(this) : getOperand(0);
|
||||
return isa<MDFile>(this) ? const_cast<MDScope *>(this)
|
||||
: static_cast<Metadata *>(getOperand(0));
|
||||
}
|
||||
|
||||
static bool classof(const Metadata *MD) {
|
||||
|
|
Loading…
Reference in New Issue