From ff4dceef9201c5ae3924e92f6955977f243ac71d Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 9 Dec 2019 17:07:52 +0100 Subject: [PATCH] Fix the compiler warnings: "-Winconsistent-missing-override", "-Wunused-variable" for d97b3e3e65cd77a81b39732af84a1a4229e95091 --- clang/lib/CodeGen/CGBuiltin.cpp | 4 ++-- clang/utils/TableGen/MveEmitter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 94d10a1..7b5d691 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -6804,8 +6804,8 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID, template static Integer GetIntegerConstantValue(const Expr *E, ASTContext &Context) { llvm::APSInt IntVal; - bool IsConst = E->isIntegerConstantExpr(IntVal, Context); - assert(IsConst && "Sema should have checked this was a constant"); + assert(E->isIntegerConstantExpr(IntVal, Context) && + "Sema should have checked this was a constant"); return IntVal.getExtValue(); } diff --git a/clang/utils/TableGen/MveEmitter.cpp b/clang/utils/TableGen/MveEmitter.cpp index 37bf322..643d2d5 100644 --- a/clang/utils/TableGen/MveEmitter.cpp +++ b/clang/utils/TableGen/MveEmitter.cpp @@ -564,7 +564,7 @@ public: return Result::asValue(); } bool hasIntegerValue() const override { return Immediate; } - virtual std::string getIntegerValue(const std::string &IntType) { + std::string getIntegerValue(const std::string &IntType) override { return "GetIntegerConstantValue<" + IntType + ">(E->getArg(" + utostr(ArgNum) + "), getContext())"; } -- 2.7.4