[PATCH] Diagnose the usage of an MS inline assembly label not defined in the same assembly block

Ehsan Akhgari ehsan.akhgari at gmail.com
Wed Oct 8 20:20:22 PDT 2014


Hi rnk,

This addresses PR21035. For now, we are unable to represent the
possibility of jumping between asm IR blocks in LLVM, so these kinds of
jumps don't play well with the SSA model. This patch adds a diagnostic
that detect those kinds of jumps, based on the information that the LLVM
side patch exposes from MC.

Note that this diagnostic is unable to differentiate between branches
versus other kinds of label access, so it covers them all.

http://reviews.llvm.org/D5694

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Sema.h
  lib/Parse/ParseStmtAsm.cpp
  lib/Sema/SemaStmtAsm.cpp
  test/Parser/ms-inline-asm.c
  test/Sema/ms-inline-asm.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5694.14623.patch
Type: text/x-patch
Size: 5579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141009/65b6fe4e/attachment.bin>


More information about the cfe-commits mailing list