[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


https://bugs.llvm.org/show_bug.cgi?id=44284

            Bug ID: 44284
           Summary: [regression] const llvm::MCExpr
                    *llvm::MCSymbol::getVariableValue(bool) const:
                    Assertion `isVariable() && "Invalid accessor!"'
                    failed.
           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
https://github.com/llvm/llvm-project/commit/cd36a2857ea172d70a7a841f4b622a5f408944a9
[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
https://github.com/CTSRD-CHERI/llvm-project/issues/350

-- 
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