IR: isScopeRef() should check isScope()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 18 Feb 2015 19:46:02 +0000 (19:46 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 18 Feb 2015 19:46:02 +0000 (19:46 +0000)
commit510ccd20a9169537342a497263f2ccbe564d860e
treed8881b02244e0643445acbc0a27ec46d1ea39dc1
parent1cfad01081d0a846107995d498c75a2c8a954eac
IR: isScopeRef() should check isScope()

r229733 removed an invalid use of `DIScopeRef`, so now we can enforce
that a `DIScopeRef` is actually a scope.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229734 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/DebugInfo.cpp