HomePhabricator

Avoid naming variable after type to fix GCC 5.3 build

Authored by rnk on Dec 6 2019, 11:24 AM.

Description

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.

Details

Committed
rnkDec 6 2019, 11:25 AM
Parents
rG43e2a901e152: Revert "[InstCombine] reduce code duplication; NFC"
Branches
Unknown
Tags
Unknown