https://bugs.llvm.org/show_bug.cgi?id=44999
Bug ID: 44999
Summary: assertion "SM->getFileID(Loc) == MacroFileID" in
retrieveMacroLocation
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangb...@nondot.org
Reporter: jo...@netbsd.org
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk
Test case:
source.c:
#define a(b, c) memset(b, 0, c)
#define fontrom (mem + FONT_ADRS)
mem[];
#include "header.h"
d() {
a(fontrom, sizeof(fontrom));
}
header.h:
#define FONT_ADRS 0x110000
This will trigger the assert because the range passed to DiagnosticRenderer.cpp
covers diferent file locations.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs