Pass end position of span through inline ASM cookie
This commit is contained in:
parent
f2abf827c1
commit
68227a3777
24 changed files with 1565 additions and 200 deletions
|
@ -1535,7 +1535,7 @@ extern "C" LLVMTypeKind LLVMRustGetTypeKind(LLVMTypeRef Ty) {
|
|||
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(SMDiagnostic, LLVMSMDiagnosticRef)
|
||||
|
||||
extern "C" LLVMSMDiagnosticRef LLVMRustGetSMDiagnostic(LLVMDiagnosticInfoRef DI,
|
||||
unsigned *Cookie) {
|
||||
uint64_t *Cookie) {
|
||||
llvm::DiagnosticInfoSrcMgr *SM =
|
||||
static_cast<llvm::DiagnosticInfoSrcMgr *>(unwrap(DI));
|
||||
*Cookie = SM->getLocCookie();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue