Skip to content

Commit 1356b97

Browse files
committed
Updated to LLVM/Clang revisions 348759/348755 respectively.
This fixes the parsing of the headers for MinGW 7.3.0 64-bit. Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent e10fc01 commit 1356b97

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

build/Clang-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bbae650adb7a55c54b95efbb1b52c35101f3703c
1+
9db90514610de6a64b71f9fa7f115437aa3d83d3

build/LLVM-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bfd4fdf0e5ff0908e3c5274e7879589ccb1a65fe
1+
981341ad1ab30b1d90c4673f5b886232f6ba5d3d

src/CppParser/ELFDumper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ ELFDumper<ELFT>::ELFDumper(const llvm::object::ELFFile<ELFT> *Obj) {
103103
}
104104
}
105105
if (StringTableBegin)
106-
DynamicStringTable = StringRef(StringTableBegin, StringTableSize);
106+
DynamicStringTable = llvm::StringRef(StringTableBegin, StringTableSize);
107107
}
108108

109109
template <typename ELFT>

src/CppParser/Parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,13 +3573,13 @@ AST::Expression* Parser::WalkExpression(const clang::Expr* Expr)
35733573
default:
35743574
break;
35753575
}
3576-
llvm::APSInt integer;
3576+
clang::Expr::EvalResult integer;
35773577
if (Expr->getStmtClass() != Stmt::CharacterLiteralClass &&
35783578
Expr->getStmtClass() != Stmt::CXXBoolLiteralExprClass &&
35793579
Expr->getStmtClass() != Stmt::UnaryExprOrTypeTraitExprClass &&
35803580
!Expr->isValueDependent() &&
35813581
Expr->EvaluateAsInt(integer, c->getASTContext()))
3582-
return new AST::Expression(integer.toString(10));
3582+
return new AST::Expression(integer.Val.getInt().toString(10));
35833583
return new AST::Expression(GetStringFromStatement(Expr));
35843584
}
35853585

0 commit comments

Comments
 (0)