[PATCH] D71123: [NFC] Fix compilation with gcc 5.4

Daniil Fukalov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 6 08:38:51 PST 2019


dfukalov created this revision.
dfukalov added a reviewer: clayborg.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

variable name intersected with type name


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71123

Files:
  llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp


Index: llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
===================================================================
--- llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
+++ llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
@@ -183,7 +183,7 @@
     if (!Data.isValidOffsetForDataOfSize(Offset, 8))
       return createStringError(std::errc::io_error,
                                "FunctionInfo data is truncated");
-    const uint32_t InfoType = Data.getU32(&Offset);
+    const uint32_t IT = Data.getU32(&Offset);
     const uint32_t InfoLength = Data.getU32(&Offset);
     const StringRef InfoBytes = Data.getData().substr(Offset, InfoLength);
     if (InfoLength != InfoBytes.size())
@@ -191,7 +191,7 @@
                                "FunctionInfo data is truncated");
     DataExtractor InfoData(InfoBytes, Data.isLittleEndian(),
                            Data.getAddressSize());
-    switch (InfoType) {
+    switch (IT) {
       case InfoType::EndOfList:
         Done = true;
         break;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71123.232578.patch
Type: text/x-patch
Size: 988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191206/19ef711e/attachment.bin>


More information about the llvm-commits mailing list