[llvm] r370260 - [llvm-readobj][XCOFF][NFC] Add return statement to avoid -Wimplicit-fallthrough warning
Jason Liu via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 13:59:18 PDT 2019
Author: jasonliu
Date: Wed Aug 28 13:59:17 2019
New Revision: 370260
URL: http://llvm.org/viewvc/llvm-project?rev=370260&view=rev
Log:
[llvm-readobj][XCOFF][NFC] Add return statement to avoid -Wimplicit-fallthrough warning
This is to fix the commit in r370097.
Modified:
llvm/trunk/tools/llvm-readobj/XCOFFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/XCOFFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/XCOFFDumper.cpp?rev=370260&r1=370259&r2=370260&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/XCOFFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/XCOFFDumper.cpp Wed Aug 28 13:59:17 2019
@@ -237,6 +237,7 @@ static StringRef GetSymbolValueName(XCOF
case XCOFF::C_ECOML:
case XCOFF::C_DWARF:
assert(false && "This StorageClass for the symbol is not yet implemented.");
+ return "";
default:
return "Value";
}
More information about the llvm-commits
mailing list