aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerUtils.h')
-rw-r--r--CompilerUtils.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/CompilerUtils.h b/CompilerUtils.h
index 32dc93a2..a880f9ee 100644
--- a/CompilerUtils.h
+++ b/CompilerUtils.h
@@ -99,8 +99,9 @@ public:
bool _copyDynamicDataInPlace = false
);
- /// Appends code for an implicit or explicit type conversion. For now this comprises only erasing
- /// higher-order bits (@see appendHighBitCleanup) when widening integer.
+ /// Appends code for an implicit or explicit type conversion. This includes erasing higher
+ /// order bits (@see appendHighBitCleanup) when widening integer but also copy to memory
+ /// if a reference type is converted from calldata or storage to memory.
/// If @a _cleanupNeeded, high order bits cleanup is also done if no type conversion would be
/// necessary.
void convertType(Type const& _typeOnStack, Type const& _targetType, bool _cleanupNeeded = false);