mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 17:06:07 +00:00

If the CPU string is empty, the target feature map may end up having an empty string inserted to it. The symptom of the problem is a warning message: '+' is not a recognized feature for this target (ignoring feature) Also, the target-features attribute in the module will have an empty string in it.
5 lines
158 B
C
5 lines
158 B
C
// RUN: %clang_cc1 %s -triple hexagon-unknown-elf -emit-llvm -o - 2>&1 | FileCheck %s
|
|
// CHECK-NOT: '+' is not a recognized feature for this target
|
|
|
|
// Empty
|