HomePhabricator

Silence gcc warning "control reaches end of non-void function" [NFCI]

Authored by uabelho on Jul 4 2019, 11:12 PM.

Description

Silence gcc warning "control reaches end of non-void function" [NFCI]

Without this fix gcc (7.4) complains with

/data/repo/master/clang/lib/CodeGen/CGObjCMac.cpp: In member function 'std::__cxx11::string {anonymous}::CGObjCCommonMac::GetSectionName(llvm::StringRef, llvm::StringRef)':
/data/repo/master/clang/lib/CodeGen/CGObjCMac.cpp:4944:1: error: control reaches end of non-void function [-Werror=return-type]

}
^

All values in the ObjectFormatType enum are currently handled in the switch
but gcc complains anyway.

llvm-svn: 365174

Details

Committed
uabelhoJul 4 2019, 11:12 PM
Parents
rGecb60b7e5ce7: [llvm-objcopy][NFC] Refactor output target parsing v2
Branches
Unknown
Tags
Unknown