diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-05-25 22:37:29 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-05-25 22:37:29 +0000 |
commit | 00698731edd82f6c97c53f0d9c04137fc65a1759 (patch) | |
tree | 59e2b402fc68b16829374691853eab85dc526a7e | |
parent | 59a5ad8f6afa8738fe9d8ec387dd83b7a96be5c2 (diff) | |
download | bcm5719-llvm-00698731edd82f6c97c53f0d9c04137fc65a1759.tar.gz bcm5719-llvm-00698731edd82f6c97c53f0d9c04137fc65a1759.zip |
Work around an MSVC compiler issue in r270776.
llvm-svn: 270783
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp index 8e5892cb114..9afff06685c 100644 --- a/llvm/lib/CodeGen/LiveDebugValues.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues.cpp @@ -47,7 +47,7 @@ namespace { // \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. -static unsigned isDescribedByReg(const MachineInstr &MI) { +static unsigned isDbgValueDescribedByReg(const MachineInstr &MI) { assert(MI.isDebugValue() && "expected a DBG_VALUE"); assert(MI.getNumOperands() == 4 && "malformed DBG_VALUE"); // If location of variable is described using a register (directly @@ -107,7 +107,7 @@ private: "hash does not cover all members of Loc"); assert(MI.isDebugValue() && "not a DBG_VALUE"); assert(MI.getNumOperands() == 4 && "malformed DBG_VALUE"); - if (int RegNo = ::isDescribedByReg(MI)) { + if (int RegNo = isDbgValueDescribedByReg(MI)) { Kind = RegisterKind; Loc.RegisterLoc.RegNo = RegNo; uint64_t Offset = @@ -253,7 +253,7 @@ void LiveDebugValues::transferDebugValue(const MachineInstr &MI, // Add the VarLoc to OpenRanges from this DBG_VALUE. // TODO: Currently handles DBG_VALUE which has only reg as location. - if (isDescribedByReg(MI)) + if (isDbgValueDescribedByReg(MI)) OpenRanges.set(VarLocIDs.insert(MI)); } |