mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-22 03:35:35 -04:00
ae5480dda7
CodeGen uses MO_ExternalSymbol to represent the inline assembly strings. Empty strings for symbol names appear to be invalid. For now just special case the output code to avoid hitting an `assert()` in `printLLVMNameWithoutPrefix()`. This fixes https://llvm.org/PR33317 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304815 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
293 B
YAML
13 lines
293 B
YAML
# RUN: llc -o - %s -mtriple=x86_64-- -run-pass none | FileCheck %s
|
|
---
|
|
# Avoid crash/assert when using an emptystring in an INLINEASM.
|
|
# CHECK-LABEL: name: emptystring
|
|
# CHECK: bb.0:
|
|
# CHECK: INLINEASM $"", 1
|
|
# CHECK: RET 0
|
|
name: emptystring
|
|
body: |
|
|
bb.0:
|
|
INLINEASM $"", 1
|
|
RET 0
|