summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp4
-rw-r--r--clang/utils/TableGen/MveEmitter.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 94d10a1aedf..7b5d691d26c 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -6804,8 +6804,8 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
template<typename Integer>
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 37bf3220182..643d2d598ba 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())";
}
OpenPOWER on IntegriCloud