[llvm-bugs] [Bug 46436] New: Internal clang error while compiling llvm code
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 24 06:14:44 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46436
Bug ID: 46436
Summary: Internal clang error while compiling llvm code
Product: libraries
Version: 9.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: tarasber at yandex.ru
CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
llvm-dev at redking.me.uk, spatel+llvm at rotateright.com
I have this llvm-code in "t.ll" file:
//--------------------------------------------------------
// t.ll:
//--------------------------------------------------------
%type.0 = type i32()
@g.0 = alias %type.0, %type.0* null
!llvm.module.flags = !{!5}
!5 = !{i32 2, !"Debug Info Version", i32 3}
//--------------------------------------------------------
// try to optimize:
// clang t.ll -o to.ll -O3 -S -emit-llvm
// and I see this:
//--------------------------------------------------------
C:\Users\User\mpl-c\build>clang t.ll -o to.ll -O3 -S -emit-llvm
Aliasee should be either GlobalValue or ConstantExpr
i32 ()* @g.0
fatal error: error in backend: Broken module found, compilation aborted!
Stack dump:
0. Program arguments: C:\Users\User\mpl\clang.exe -cc1 -triple
x86_64-pc-windows-msvc19.24.28316 -emit-llvm -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name t.ll
-mrelocation-model pic -pi
c-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -dwarf-column-info -momit-leaf-frame-pointer
-coverage-notes-file C:\Users\User\mpl-c\build\to.gcno -re
source-dir C:\Users\User\lib\clang\9.0.0 -O3 -fdebug-compilation-dir
C:\Users\User\mpl-c\build -ferror-limit 19 -fmessage-length 218
-fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.
24.28316 -fdelayed-template-parsing -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-faddrsig -o to.ll -x ir t.ll
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Users\User\mpl
clang: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.
--
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/20200624/f7086e3c/attachment-0001.html>
More information about the llvm-bugs
mailing list