From 3ca9bcf12df532b3dda596ea44a8fcc0e628433f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 9 Sep 2019 01:08:39 -0400 Subject: [PATCH] atdna: Be explicit about the SeekOrigin type --- atdna/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atdna/main.cpp b/atdna/main.cpp index e1cb6ec..7acd2c2 100644 --- a/atdna/main.cpp +++ b/atdna/main.cpp @@ -681,13 +681,13 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor { if (directionVal == 0) { outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName), - "("s.append(offsetExprStr).append(", athena::Begin, s)"), false); + "("s.append(offsetExprStr).append(", athena::SeekOrigin::Begin, s)"), false); } else if (directionVal == 1) { outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName), - "("s.append(offsetExprStr).append(", athena::Current, s)"), false); + "("s.append(offsetExprStr).append(", athena::SeekOrigin::Current, s)"), false); } else if (directionVal == 2) { outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName), - "("s.append(offsetExprStr).append(", athena::End, s)"), false); + "("s.append(offsetExprStr).append(", athena::SeekOrigin::End, s)"), false); } } else if (!tsDecl->getName().compare("Align")) { llvm::APSInt align(64, 0);