[all-commits] [llvm/llvm-project] cf4573: [Driver] Fix assertion failure when -fprofile-gene...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jan 12 14:20:14 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf45731f0eaead79e1ac501b397e330df41ec152
      https://github.com/llvm/llvm-project/commit/cf45731f0eaead79e1ac501b397e330df41ec152
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-01-12 (Tue, 12 Jan 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/fcs-profile-generate.c

  Log Message:
  -----------
  [Driver] Fix assertion failure when -fprofile-generate -fcs-profile-generate are used together

If conflicting `-fprofile-generate -fcs-profile-generate` are used together,
there is currently an assertion failure. Fix the failure.

Also add some driver tests.

Reviewed By: xur

Differential Revision: https://reviews.llvm.org/D94463




More information about the All-commits mailing list