[llvm] r270783 - Work around an MSVC compiler issue in r270776.
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 15:37:30 PDT 2016
Author: adrian
Date: Wed May 25 17:37:29 2016
New Revision: 270783
URL: http://llvm.org/viewvc/llvm-project?rev=270783&view=rev
Log:
Work around an MSVC compiler issue in r270776.
Modified:
llvm/trunk/lib/CodeGen/LiveDebugValues.cpp
Modified: llvm/trunk/lib/CodeGen/LiveDebugValues.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveDebugValues.cpp?rev=270783&r1=270782&r2=270783&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveDebugValues.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveDebugValues.cpp Wed May 25 17:37:29 2016
@@ -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
// 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));
}
More information about the llvm-commits
mailing list