[Bug 234144] base clang 6.0.0 Assertion failed: (Result.isUninit() && "temporary created multiple times"), function createTemporary

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 20 18:29:13 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234144

--- Comment #1 from commit-hook at freebsd.org ---
A commit references this bug:

Author: dim
Date: Thu Dec 20 18:28:55 UTC 2018
New revision: 342281
URL: https://svnweb.freebsd.org/changeset/base/342281

Log:
  Pull in r329671 from upstream clang trunk (by Akira Hatanaka):

    [ExprConstant] Use an AST node and a version number as a key to
    create an APValue and retrieve it from map Temporaries.

    The version number is needed when a single AST node is visited
    multiple times and is used to create APValues that are required to be
    distinct from each other (for example, MaterializeTemporaryExprs in
    default arguments and VarDecls in loops).

    rdar://problem/36505742

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

  This should fix 'Assertion failed: (Result.isUninit() && "temporary
  created multiple times"), function createTemporary' errors (if
  assertions are enabled, otherwise the compiler internal state might go
  bad), when building the graphics/rawtherapee port.

  Direct commit to stable/11 and stable/12, since head already has clang
  7.0.1, which includes this change.

  PR:           234144

Changes:
  stable/11/contrib/llvm/tools/clang/include/clang/AST/APValue.h
  stable/11/contrib/llvm/tools/clang/lib/AST/APValue.cpp
  stable/11/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp
  stable/12/contrib/llvm/tools/clang/include/clang/AST/APValue.h
  stable/12/contrib/llvm/tools/clang/lib/AST/APValue.cpp
  stable/12/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list