forked from OSchip/llvm-project
Update call to EvaluateAsInt() to the new syntax.
llvm-svn: 347365
This commit is contained in:
parent
91549ed15f
commit
8c8bdbe441
|
@ -5963,10 +5963,10 @@ GetObjCFieldAtIndex(clang::ASTContext *ast,
|
|||
|
||||
if (is_bitfield && ast) {
|
||||
clang::Expr *bitfield_bit_size_expr = ivar_pos->getBitWidth();
|
||||
llvm::APSInt bitfield_apsint;
|
||||
clang::Expr::EvalResult result;
|
||||
if (bitfield_bit_size_expr &&
|
||||
bitfield_bit_size_expr->EvaluateAsInt(bitfield_apsint,
|
||||
*ast)) {
|
||||
bitfield_bit_size_expr->EvaluateAsInt(result, *ast)) {
|
||||
llvm::APSInt bitfield_apsint = result.Val.getInt();
|
||||
*bitfield_bit_size_ptr = bitfield_apsint.getLimitedValue();
|
||||
}
|
||||
}
|
||||
|
@ -6023,10 +6023,11 @@ CompilerType ClangASTContext::GetFieldAtIndex(lldb::opaque_compiler_type_t type,
|
|||
|
||||
if (is_bitfield) {
|
||||
clang::Expr *bitfield_bit_size_expr = field->getBitWidth();
|
||||
llvm::APSInt bitfield_apsint;
|
||||
clang::Expr::EvalResult result;
|
||||
if (bitfield_bit_size_expr &&
|
||||
bitfield_bit_size_expr->EvaluateAsInt(bitfield_apsint,
|
||||
bitfield_bit_size_expr->EvaluateAsInt(result,
|
||||
*getASTContext())) {
|
||||
llvm::APSInt bitfield_apsint = result.Val.getInt();
|
||||
*bitfield_bit_size_ptr = bitfield_apsint.getLimitedValue();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue