diff --git a/llvm/lib/AsmParser/Lexer.l b/llvm/lib/AsmParser/Lexer.l index faddcb16d51d..b8373250a74d 100644 --- a/llvm/lib/AsmParser/Lexer.l +++ b/llvm/lib/AsmParser/Lexer.l @@ -85,7 +85,7 @@ static double HexToFP(const char *Buffer) { // If AllowNull is set to true, the return value of the function points to the // last character of the string in memory. // -char *UnEscapeLexed(char *Buffer, bool AllowNull = false) { +char *UnEscapeLexed(char *Buffer, bool AllowNull) { char *BOut = Buffer; for (char *BIn = Buffer; *BIn; ) { if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) { diff --git a/llvm/lib/AsmParser/llvmAsmParser.y b/llvm/lib/AsmParser/llvmAsmParser.y index a9e4e75d44c2..33ae800b5942 100644 --- a/llvm/lib/AsmParser/llvmAsmParser.y +++ b/llvm/lib/AsmParser/llvmAsmParser.y @@ -387,7 +387,7 @@ static Value *getVal(const Type *Ty, const ValID &D) { // defs now... // static void ResolveDefinitions(vector &LateResolvers, - vector *FutureLateResolvers = 0) { + vector *FutureLateResolvers) { // Loop over LateResolveDefs fixing up stuff that couldn't be resolved for (unsigned ty = 0; ty < LateResolvers.size(); ty++) { while (!LateResolvers[ty].empty()) {