summaryrefslogtreecommitdiffstats
path: root/compilerplugins
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/plugin.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx
index 7c4256b9f73d..db9521f8dac3 100644
--- a/compilerplugins/clang/plugin.cxx
+++ b/compilerplugins/clang/plugin.cxx
@@ -55,9 +55,8 @@ bool Plugin::ignoreLocation( SourceLocation loc )
SourceLocation expansionLoc = context.getSourceManager().getExpansionLoc( loc );
if( context.getSourceManager().isInSystemHeader( expansionLoc ))
return true;
- bool invalid;
- const char* bufferName = context.getSourceManager().getBufferName( expansionLoc, &invalid );
- if( invalid )
+ const char* bufferName = context.getSourceManager().getPresumedLoc( expansionLoc ).getFilename();
+ if( bufferName == NULL )
return true;
if( strncmp( bufferName, OUTDIR, strlen( OUTDIR )) == 0
|| strncmp( bufferName, WORKDIR, strlen( WORKDIR )) == 0