Skip to content

Commit 30a54f3

Browse files
committed
Interpret an empty code model as no code model, or the default code model
1 parent 85582c4 commit 30a54f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ getCodeModel(const CodeGenOptions &CodeGenOpts) {
304304
.Case("kernel", llvm::CodeModel::Kernel)
305305
.Case("medium", llvm::CodeModel::Medium)
306306
.Case("large", llvm::CodeModel::Large)
307-
.Case("default", ~1u)
307+
.Cases("default", "", ~1u)
308308
.Default(~0u);
309309
assert(CodeModel != ~0u && "invalid code model!");
310310
if (CodeModel == ~1u)

0 commit comments

Comments
 (0)