https://bugs.kde.org/show_bug.cgi?id=405182

            Bug ID: 405182
           Summary: Valgrind fails to build with Clang
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: FreeBSD
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: ema...@freebsd.org
  Target Milestone: ---

Created attachment 118631
  --> https://bugs.kde.org/attachment.cgi?id=118631&action=edit
cast patch to fix Clang failure

SUMMARY
Clang/LLVM fails an assertion when compiling my_offsetof in
VEX/auxprogs/genoffsets.c.

STEPS TO REPRODUCE
1. Build Valgrind with Clang (tested on FreeBSD with Clang 8.0)

OBSERVED RESULT
Clang assertion failure:
Assertion failed: (EVResult.Val.isInt() && "Expression did not evaluate to
integer"), function EvaluateKnownConstInt, file
/home/dim/src/llvm/trunk/tools/clang/lib/AST/ExprConstant.cpp, line 11056.

EXPECTED RESULT
Valgrind builds

The assertion failure is a Clang bug, but the fix is probably to emit a
diagnostic message instead. Details in
https://bugs.llvm.org/show_bug.cgi?id=40890. Attached patch copies cast from
the other my_offsetof definition (from none/tests/x86/x87trigOOR.c).

SOFTWARE/OS VERSIONS
FreeBSD 12.0

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to