[llvm-bugs] [Bug 49234] New: -Xclang -emit-llvm -save-temps tries to parse bitcode as cpp-output, fails
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 17 17:08:48 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49234
Bug ID: 49234
Summary: -Xclang -emit-llvm -save-temps tries to parse bitcode
as cpp-output, fails
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: jonathanchesterfield at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
E.g. https://godbolt.org/z/WWoKeb
-Xclang -emit-llvm is passed to the preprocessor invocation, which writes IR
instead of annotated c++. clang -x cpp-output fails to parse IR, error:
expected ';' after top level declarator
Similarly with -Xclang -emit-llvm-bc -save-temps, https://godbolt.org/z/3zErf7,
which rejects 'BC<C0><DE>5<U+0014><U+0000>...' as not being valid UTF-8.
I would guess the fix for this is similar to however -emit-llvm is handled,
since -emit-llvm -save-temps works. -### suggests the -emit-llvm clause is
removed for the preprocessor invocation.
--
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/20210218/1a634859/attachment.html>
More information about the llvm-bugs
mailing list