mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Fix buildbot issues for MDScope::getFile() after r230871
I hope this extra cast will make everyone happy... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5bcf130056
commit
45909778e7
@ -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…
x
Reference in New Issue
Block a user