From 0d605cd3faa0a79352a317bfeead1f5691aa748b Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sun, 5 Oct 2014 04:12:23 +0300 Subject: [PATCH] Fixed the target triples with the new Clang. Signed-off-by: Dimitar Dobrev --- src/CppParser/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index 5c88b829..6d05870a 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -153,7 +153,7 @@ void Parser::SetupHeader() TO->Triple = llvm::sys::getDefaultTargetTriple(); if (!Opts->TargetTriple.empty()) - TO->Triple = Opts->TargetTriple; + TO->Triple = llvm::Triple::normalize(Opts->TargetTriple); TargetInfo* TI = TargetInfo::CreateTargetInfo(C->getDiagnostics(), TO); if (!TI)