mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
1d3b431c98
location data is available. If pragma handling wants to look up the position, it finds the LLVM buffer and wants to compare it with the special built-in buffer, failing badly. Extend to the special handling of the built-in buffer to also check for the inline asm buffer. Expect only a single asm buffer. Sort it between the built-in buffers and the normal file buffers. Fixes the assert part of PR 22576. llvm-svn: 232389
6 lines
298 B
C
6 lines
298 B
C
// REQUIRES: arm-registered-target
|
|
// RUN: not %clang_cc1 -emit-obj -triple armv6-unknown-unknown -o %t %s 2>&1 | FileCheck %s
|
|
#pragma clang diagnostic ignored "-Wmissing-noreturn"
|
|
__asm__(".Lfoo: movw r2, #:lower16:.Lbar - .Lfoo");
|
|
// CHECK: <inline asm>:1:8: error: instruction requires: armv6t2
|