forked from OSchip/llvm-project
c7c9d76187
Sign-extension of small types (e.g. short) was not handled correctly. The reason for that was that when we were assigning the a value to the Scalar object, we would accidentally promote the type to int (even though the assignment code in AssignTypeToMatch tried to cast the value to the appropriate type, it would still invoke the "int" version of operator=). Instead, I use the APInt version of operator=, where the bitwidth is specified explicitly. Among other things, this allows us to fold the individual size cases into one. llvm-svn: 335114 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
DWARFExpression.cpp | ||
DiagnosticManager.cpp | ||
Expression.cpp | ||
ExpressionSourceCode.cpp | ||
ExpressionVariable.cpp | ||
FunctionCaller.cpp | ||
IRDynamicChecks.cpp | ||
IRExecutionUnit.cpp | ||
IRInterpreter.cpp | ||
IRMemoryMap.cpp | ||
LLVMUserExpression.cpp | ||
Materializer.cpp | ||
REPL.cpp | ||
UserExpression.cpp | ||
UtilityFunction.cpp |