[Lldb-commits] [lldb] r341685 - [Scalar] Commit the correct patch, forgot `git add`.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 7 11:22:27 PDT 2018
Author: davide
Date: Fri Sep 7 11:22:27 2018
New Revision: 341685
URL: http://llvm.org/viewvc/llvm-project?rev=341685&view=rev
Log:
[Scalar] Commit the correct patch, forgot `git add`.
<rdar://problem/44229924>
Modified:
lldb/trunk/source/Utility/Scalar.cpp
Modified: lldb/trunk/source/Utility/Scalar.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/Scalar.cpp?rev=341685&r1=341684&r2=341685&view=diff
==============================================================================
--- lldb/trunk/source/Utility/Scalar.cpp (original)
+++ lldb/trunk/source/Utility/Scalar.cpp Fri Sep 7 11:22:27 2018
@@ -1447,14 +1447,14 @@ unsigned long long Scalar::ULongLong(uns
.getZExtValue();
case e_float:
return (ulonglong_t)m_float.convertToFloat();
- case e_double:
- {
- double d_val = patatino.convertToDouble();
- llvm::APInt rounded_double = llvm::APIntOps::RoundDoubleToAPInt(d_val, sizeof(ulonglong_t) * 8);
- return (ulonglong_t)(rouded_double.zextOrTrunc(sizeof(ulonglong_t) * 8))
- .getZExtValue();
- }
- case e_long_double:
+ case e_double: {
+ double d_val = m_float.convertToDouble();
+ llvm::APInt rounded_double =
+ llvm::APIntOps::RoundDoubleToAPInt(d_val, sizeof(ulonglong_t) * 8);
+ return (ulonglong_t)(rounded_double.zextOrTrunc(sizeof(ulonglong_t) * 8))
+ .getZExtValue();
+ }
+ case e_long_double:
llvm::APInt ldbl_val = m_float.bitcastToAPInt();
return (ulonglong_t)(ldbl_val.zextOrTrunc(sizeof(ulonglong_t) * 8))
.getZExtValue();
More information about the lldb-commits
mailing list