Last active
June 9, 2017 17:22
-
-
Save yamaguchi1024/92e0c725a09ec3dc0eb315c50055e7af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp | |
index 6e52e7e..f4eaa28 100644 | |
--- a/clang/lib/Frontend/CompilerInvocation.cpp | |
+++ b/clang/lib/Frontend/CompilerInvocation.cpp | |
@@ -649,8 +649,9 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, | |
Opts.NoUseJumpTables = Args.hasArg(OPT_fno_jump_tables); | |
Opts.PrepareForLTO = Args.hasArg(OPT_flto, OPT_flto_EQ); | |
- const Arg *A = Args.getLastArg(OPT_flto, OPT_flto_EQ); | |
- Opts.EmitSummaryIndex = A && A->containsValue("thin"); | |
+ Opts.EmitSummaryIndex = | |
+ Args.hasArg(OPT_flto_EQ) && | |
+ StringRef(Args.getLastArgValue(OPT_flto_EQ)) == "thin"; | |
Opts.LTOUnit = Args.hasFlag(OPT_flto_unit, OPT_fno_lto_unit, false); | |
if (Arg *A = Args.getLastArg(OPT_fthinlto_index_EQ)) { | |
if (IK.getLanguage() != InputKind::LLVM_IR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment