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 llvm-svn: 304815
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
|