[all-commits] [llvm/llvm-project] 7f63db: Avoid naming variable after type to fix GCC 5.3 build
Reid Kleckner via All-commits
all-commits at lists.llvm.org
Fri Dec 6 11:25:32 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7f63db197e7453a6438c15e50a5508cc7613a293
https://github.com/llvm/llvm-project/commit/7f63db197e7453a6438c15e50a5508cc7613a293
Author: Reid Kleckner <rnk at google.com>
Date: 2019-12-06 (Fri, 06 Dec 2019)
Changed paths:
M llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
Log Message:
-----------
Avoid naming variable after type to fix GCC 5.3 build
GCC says:
.../llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp:195:12:
error: ‘InfoType’ is not a class, namespace, or enumeration
case InfoType::EndOfList:
^
Presumably, GCC thinks InfoType is a variable here. Work around it by
using the name IT as is done above.
More information about the All-commits
mailing list