diff options
Diffstat (limited to 'Driver/Targets.cpp')
-rw-r--r-- | Driver/Targets.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/Targets.cpp b/Driver/Targets.cpp index 336beb925d..63df5d48c8 100644 --- a/Driver/Targets.cpp +++ b/Driver/Targets.cpp @@ -691,7 +691,7 @@ static TargetInfoImpl *CreateTarget(const std::string& T) { /// CreateTargetInfo - Return the set of target info objects as specified by /// the -arch command line option. TargetInfo *clang::CreateTargetInfo(const std::vector<std::string>& triples, - Diagnostic &Diags) { + Diagnostic *Diags) { assert (!triples.empty() && "No target triple."); @@ -701,7 +701,7 @@ TargetInfo *clang::CreateTargetInfo(const std::vector<std::string>& triples, if (!PrimaryTarget) return NULL; - TargetInfo *TI = new TargetInfo(PrimaryTarget, &Diags); + TargetInfo *TI = new TargetInfo(PrimaryTarget, Diags); // Add all secondary targets. for (unsigned i = 1, e = triples.size(); i != e; ++i) { |