Skip to content

Commit ae5a041

Browse files
committed
Add a comment regarding decoration parameters for types
1 parent b387b2a commit ae5a041

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/opt/types.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ class Type {
226226
protected:
227227
// Decorations attached to this type. Each decoration is encoded as a vector
228228
// of uint32_t numbers. The first uint32_t number is the decoration value,
229-
// and the rest are the parameters to the decoration (if exists).
229+
// and the rest are the parameters to the decoration (if any exist).
230+
// The parameters can be either all literals or all ids depending on the
231+
// decoration value.
230232
std::vector<std::vector<uint32_t>> decorations_;
231233

232234
private:

0 commit comments

Comments
 (0)