diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-06-22 19:05:19 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-06-22 19:05:19 +0000 |
| commit | f033c147c94d42439e789ef34f4c392b7d6e48c5 (patch) | |
| tree | 338fac5232337e7c026b35eab77e3c1d89a6929c /clang/Basic | |
| parent | 0fb8465981df491b97297e146308ffc3df73fce3 (diff) | |
| download | bcm5719-llvm-f033c147c94d42439e789ef34f4c392b7d6e48c5.tar.gz bcm5719-llvm-f033c147c94d42439e789ef34f4c392b7d6e48c5.zip | |
remove location tracking for target info
llvm-svn: 39671
Diffstat (limited to 'clang/Basic')
| -rw-r--r-- | clang/Basic/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Basic/TargetInfo.cpp b/clang/Basic/TargetInfo.cpp index a565536fd6f..008e99b9149 100644 --- a/clang/Basic/TargetInfo.cpp +++ b/clang/Basic/TargetInfo.cpp @@ -26,7 +26,7 @@ void TargetInfoImpl::ANCHOR() {} // out-of-line virtual method for class. /// non-portable. void TargetInfo::DiagnoseNonPortability(SourceLocation Loc, unsigned DiagKind) { NonPortable = true; - if (Diag) Diag->Report(Loc, DiagKind); + if (Diag && Loc.isValid()) Diag->Report(Loc, DiagKind); } /// GetTargetDefineMap - Get the set of target #defines in an associative |

