forked from OSchip/llvm-project
an instantiation loc is always a file loc.
llvm-svn: 62370
This commit is contained in:
parent
703a6c7274
commit
671689a440
|
@ -133,9 +133,6 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) {
|
|||
for (PathDiagnostic::const_iterator I = D.begin(), E = D.end(); I != E; ++I) {
|
||||
FullSourceLoc L = I->getLocation().getInstantiationLoc();
|
||||
|
||||
if (!L.isFileID())
|
||||
return; // FIXME: Emit a warning?
|
||||
|
||||
if (!FileIDInitialized) {
|
||||
FileID = L.getCanonicalFileID();
|
||||
FileIDInitialized = true;
|
||||
|
|
Loading…
Reference in New Issue