From 7c27c8a6a7c233c3c6162d9b86942351fe5f42b3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 14 Jun 2009 06:07:30 +0000 Subject: Add ConstantExpr::{getLimitedValue,getZExtValue}. - For use in situations where the range of the constant is known to fit in a uint64 (or smaller), or the extra bits don't matter. - No (intended) functionality change. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73326 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Expr/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Expr/Parser.cpp') diff --git a/lib/Expr/Parser.cpp b/lib/Expr/Parser.cpp index 1f2f8412..c9d401e0 100644 --- a/lib/Expr/Parser.cpp +++ b/lib/Expr/Parser.cpp @@ -1185,7 +1185,7 @@ IntegerResult ParserImpl::ParseIntegerConstant(Expr::Width Type) { if (!Res.isValid()) return IntegerResult(); - return cast(Res.get())->getConstantValue(); + return cast(Res.get())->getZExtValue(Type); } ExprResult ParserImpl::ParseExtractParenExpr(const Token &Name, -- cgit 1.4.1