зеркало из https://github.com/microsoft/clang-1.git
Silence GCC warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147664 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
e683fd9d6f
Коммит
2d5f0952a9
|
@ -490,8 +490,8 @@ double FloatingLiteral::getValueAsApproximateDouble() const {
|
|||
return V.convertToDouble();
|
||||
}
|
||||
|
||||
int StringLiteral::mapCharByteWidth(TargetInfo const &target,StringKind k) {
|
||||
int CharByteWidth;
|
||||
int StringLiteral::mapCharByteWidth(TargetInfo const &target, StringKind k) {
|
||||
int CharByteWidth = 0;
|
||||
switch(k) {
|
||||
case Ascii:
|
||||
case UTF8:
|
||||
|
|
|
@ -469,7 +469,7 @@ VisitAbstractConditionalOperator(const AbstractConditionalOperator *E) {
|
|||
llvm::BasicBlock *ContBlock = CGF.createBasicBlock("cond.end");
|
||||
|
||||
// Bind the common expression if necessary.
|
||||
CodeGenFunction::OpaqueValueMapping binding(CGF, E);
|
||||
CodeGenFunction::OpaqueValueMapping(CGF, E);
|
||||
|
||||
CodeGenFunction::ConditionalEvaluation eval(CGF);
|
||||
CGF.EmitBranchOnBoolExpr(E->getCond(), LHSBlock, RHSBlock);
|
||||
|
|
|
@ -680,7 +680,7 @@ VisitAbstractConditionalOperator(const AbstractConditionalOperator *E) {
|
|||
llvm::BasicBlock *ContBlock = CGF.createBasicBlock("cond.end");
|
||||
|
||||
// Bind the common expression if necessary.
|
||||
CodeGenFunction::OpaqueValueMapping binding(CGF, E);
|
||||
CodeGenFunction::OpaqueValueMapping(CGF, E);
|
||||
|
||||
CodeGenFunction::ConditionalEvaluation eval(CGF);
|
||||
CGF.EmitBranchOnBoolExpr(E->getCond(), LHSBlock, RHSBlock);
|
||||
|
|
|
@ -2483,7 +2483,7 @@ VisitAbstractConditionalOperator(const AbstractConditionalOperator *E) {
|
|||
TestAndClearIgnoreResultAssign();
|
||||
|
||||
// Bind the common expression if necessary.
|
||||
CodeGenFunction::OpaqueValueMapping binding(CGF, E);
|
||||
CodeGenFunction::OpaqueValueMapping(CGF, E);
|
||||
|
||||
Expr *condExpr = E->getCond();
|
||||
Expr *lhsExpr = E->getTrueExpr();
|
||||
|
|
|
@ -737,7 +737,7 @@ void Clang::AddMIPSTargetArgs(const ArgList &Args,
|
|||
const Driver &D = getToolChain().getDriver();
|
||||
|
||||
StringRef ArchName;
|
||||
const char *CPUName;
|
||||
const char *CPUName = 0;
|
||||
|
||||
// Set target cpu and architecture.
|
||||
if (Arg *A = Args.getLastArg(options::OPT_mcpu_EQ)) {
|
||||
|
|
|
@ -1226,7 +1226,7 @@ void ASTDeclReader::VisitRedeclarableTemplateDecl(RedeclarableTemplateDecl *D) {
|
|||
RedeclKind Kind = (RedeclKind)Record[Idx++];
|
||||
|
||||
// Determine the first declaration ID.
|
||||
DeclID FirstDeclID;
|
||||
DeclID FirstDeclID = 0;
|
||||
switch (Kind) {
|
||||
case FirstDeclaration: {
|
||||
FirstDeclID = ThisDeclID;
|
||||
|
@ -1481,7 +1481,7 @@ ASTDeclReader::VisitRedeclarable(Redeclarable<T> *D) {
|
|||
enum RedeclKind { FirstDeclaration = 0, FirstInFile, PointsToPrevious };
|
||||
RedeclKind Kind = (RedeclKind)Record[Idx++];
|
||||
|
||||
DeclID FirstDeclID;
|
||||
DeclID FirstDeclID = 0;
|
||||
switch (Kind) {
|
||||
case FirstDeclaration:
|
||||
FirstDeclID = ThisDeclID;
|
||||
|
|
Загрузка…
Ссылка в новой задаче