Work around an MSVC compiler issue in r270776.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270783 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adrian Prantl 2016-05-25 22:37:29 +00:00
parent e48344195f
commit aa8d763129

View File

@ -47,7 +47,7 @@ namespace {
// \brief If @MI is a DBG_VALUE with debug value described by a defined // \brief If @MI is a DBG_VALUE with debug value described by a defined
// register, returns the number of this register. In the other case, returns 0. // register, returns the number of this register. In the other case, returns 0.
static unsigned isDescribedByReg(const MachineInstr &MI) { static unsigned isDbgValueDescribedByReg(const MachineInstr &MI) {
assert(MI.isDebugValue() && "expected a DBG_VALUE"); assert(MI.isDebugValue() && "expected a DBG_VALUE");
assert(MI.getNumOperands() == 4 && "malformed DBG_VALUE"); assert(MI.getNumOperands() == 4 && "malformed DBG_VALUE");
// If location of variable is described using a register (directly // If location of variable is described using a register (directly
@ -107,7 +107,7 @@ private:
"hash does not cover all members of Loc"); "hash does not cover all members of Loc");
assert(MI.isDebugValue() && "not a DBG_VALUE"); assert(MI.isDebugValue() && "not a DBG_VALUE");
assert(MI.getNumOperands() == 4 && "malformed DBG_VALUE"); assert(MI.getNumOperands() == 4 && "malformed DBG_VALUE");
if (int RegNo = ::isDescribedByReg(MI)) { if (int RegNo = isDbgValueDescribedByReg(MI)) {
Kind = RegisterKind; Kind = RegisterKind;
Loc.RegisterLoc.RegNo = RegNo; Loc.RegisterLoc.RegNo = RegNo;
uint64_t Offset = uint64_t Offset =
@ -253,7 +253,7 @@ void LiveDebugValues::transferDebugValue(const MachineInstr &MI,
// Add the VarLoc to OpenRanges from this DBG_VALUE. // Add the VarLoc to OpenRanges from this DBG_VALUE.
// TODO: Currently handles DBG_VALUE which has only reg as location. // TODO: Currently handles DBG_VALUE which has only reg as location.
if (isDescribedByReg(MI)) if (isDbgValueDescribedByReg(MI))
OpenRanges.set(VarLocIDs.insert(MI)); OpenRanges.set(VarLocIDs.insert(MI));
} }