[llvm] 997a3c2 - Fix MSVC "not all control paths return a value" warnings. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 02:21:04 PDT 2020
Author: Simon Pilgrim
Date: 2020-07-08T10:18:36+01:00
New Revision: 997a3c29f4655e930a9ef44be98d28368d757d98
URL: https://github.com/llvm/llvm-project/commit/997a3c29f4655e930a9ef44be98d28368d757d98
DIFF: https://github.com/llvm/llvm-project/commit/997a3c29f4655e930a9ef44be98d28368d757d98.diff
LOG: Fix MSVC "not all control paths return a value" warnings. NFC.
Added:
Modified:
llvm/lib/MC/MCParser/MasmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCParser/MasmParser.cpp b/llvm/lib/MC/MCParser/MasmParser.cpp
index 14c889da5c3e..3dbd00aae47a 100644
--- a/llvm/lib/MC/MCParser/MasmParser.cpp
+++ b/llvm/lib/MC/MCParser/MasmParser.cpp
@@ -3673,6 +3673,7 @@ bool MasmParser::parseFieldInitializer(const FieldInfo &Field,
case FT_STRUCT:
return parseFieldInitializer(Field, Field.Contents.StructInfo, Initializer);
}
+ llvm_unreachable("Unhandled FieldType enum");
}
bool MasmParser::parseStructInitializer(const StructInfo &Structure,
@@ -3826,6 +3827,7 @@ bool MasmParser::emitFieldValue(const FieldInfo &Field) {
case FT_STRUCT:
return emitFieldValue(Field, Field.Contents.StructInfo);
}
+ llvm_unreachable("Unhandled FieldType enum");
}
bool MasmParser::emitStructValue(const StructInfo &Structure) {
@@ -3905,6 +3907,7 @@ bool MasmParser::emitFieldInitializer(const FieldInfo &Field,
return emitFieldInitializer(Field, Field.Contents.StructInfo,
Initializer.StructInfo);
}
+ llvm_unreachable("Unhandled FieldType enum");
}
bool MasmParser::emitStructInitializer(const StructInfo &Structure,
More information about the llvm-commits
mailing list