[llvm-bugs] [Bug 44284] New: [regression] const llvm::MCExpr *llvm::MCSymbol::getVariableValue(bool) const: Assertion `isVariable() && "Invalid accessor!"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 12 05:15:16 PST 2019


            Bug ID: 44284
           Summary: [regression] const llvm::MCExpr
                    *llvm::MCSymbol::getVariableValue(bool) const:
                    Assertion `isVariable() && "Invalid accessor!"'
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: arichardson.kde at gmail.com
                CC: llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

It appears this bug was introduced by
[PPC64] Update LocalEntry from assigned symbols

The following reduced test case triggers the assertion:

// RUN: %clang_cc1 -triple=ppc64 -emit-obj %s
__asm__(".equ err, _err");
void err() {};

This was originally reported by Nathaniel Wesley Filardo as

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191212/e7c1d253/attachment.html>

More information about the llvm-bugs mailing list