[PATCH] D105491: [clang] Use i64 for the !srcloc metadata on asm IR nodes.

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 16:44:58 PDT 2021


lattner added a comment.

The usecase for this is to get good diagnostics out of the integrated assembler.  Try doing something like: `asm("bogus");`,  GCC would produce an error pointing to the generated .s file.  Clang should point to the C file (including macros expanded etc).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105491/new/

https://reviews.llvm.org/D105491



More information about the llvm-commits mailing list