aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/InterpreterValuePrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Interpreter/InterpreterValuePrinter.cpp')
-rw-r--r--clang/lib/Interpreter/InterpreterValuePrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Interpreter/InterpreterValuePrinter.cpp b/clang/lib/Interpreter/InterpreterValuePrinter.cpp
index 34ffd62..0ea6274 100644
--- a/clang/lib/Interpreter/InterpreterValuePrinter.cpp
+++ b/clang/lib/Interpreter/InterpreterValuePrinter.cpp
@@ -106,7 +106,7 @@ static std::string EnumToString(const Value &V) {
assert(EnumTy && "Fail to cast to enum type");
EnumDecl *ED = EnumTy->getDecl();
- uint64_t Data = V.getULongLong();
+ uint64_t Data = V.convertTo<uint64_t>();
bool IsFirst = true;
llvm::APSInt AP = Ctx.MakeIntValue(Data, DesugaredTy);