Skip to content

Commit ed1af8e

Browse files
committed
Fix build failure for older LLVM versions
1 parent dfa995c commit ed1af8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c2rust-ast-exporter/src/AstExporter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Optional<APSInt> getIntegerConstantExpr(const Expr &E, const ASTContext &Ctx) {
9191
if (E.isIntegerConstantExpr(value, Ctx))
9292
return {value};
9393
else
94-
return {};
94+
return Optional<APSInt>();
9595
#else
9696
return E.getIntegerConstantExpr(Ctx);
9797
#endif // CLANG_VERSION_MAJOR

0 commit comments

Comments
 (0)