[all-commits] [llvm/llvm-project] ff837a: Actually, don't try to use __builtin_strlen in Str...

Hans via All-commits all-commits at lists.llvm.org
Mon Feb 3 08:49:44 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ff837aa63cdfadb58f387ca77785ca3ca51c6976
      https://github.com/llvm/llvm-project/commit/ff837aa63cdfadb58f387ca77785ca3ca51c6976
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2020-02-03 (Mon, 03 Feb 2020)

  Changed paths:
    M llvm/include/llvm/ADT/StringRef.h

  Log Message:
  -----------
  Actually, don't try to use __builtin_strlen in StringRef.h before VS 2019

The fix in b3d7d1061dc375bb5ea725e6597382fcd37f41d6 compiled nicely,
but didn't link because at least the VS 2017 version I use doesn't
have the builtin yet. Instead, make use of the builtin with MSVC
conditional on VS 2019 or later.




More information about the All-commits mailing list