diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 08e410be0139324c7eb0b0335a378f47d2d37658..522a0e2d23a9b5b085d9a6ba0c930d219742d904 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -1460,7 +1460,7 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) { // Splat the element across to all elements unsigned NumElements = cast(DstTy)->getNumElements(); - return Builder.CreateVectorSplat(NumElements, Elt, "splat");; + return Builder.CreateVectorSplat(NumElements, Elt, "splat"); } case CK_IntegralCast: diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 69a9092e1c4218c18830636b547ec11c6dce87a0..129b687ec045734e2d0a77bc68c3802befc89ea2 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2690,7 +2690,7 @@ CodeGenModule::GetAddrOfConstantStringFromLiteral(const StringLiteral *S) { LT = llvm::GlobalValue::LinkOnceODRLinkage; GlobalVariableName = MangledNameBuffer; } else { - LT = llvm::GlobalValue::PrivateLinkage;; + LT = llvm::GlobalValue::PrivateLinkage; GlobalVariableName = ".str"; }