File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -314,14 +314,17 @@ class ConstraintLocator : public llvm::FoldingSetNode {
314
314
{
315
315
assert (numNumericValuesInPathElement (kind) == 1 &&
316
316
" Path element kind does not require 1 value" );
317
+ assert (value == getValue (0 ) && " value truncated" );
317
318
}
318
319
319
- PathElement (PathElementKind kind, unsigned value1 , unsigned value2 )
320
- : storage(encodeStorage(kind, value1 << 16 | value2 )),
320
+ PathElement (PathElementKind kind, unsigned value0 , unsigned value1 )
321
+ : storage(encodeStorage(kind, value0 << 16 | value1 )),
321
322
storedKind (StoredKindAndValue)
322
323
{
323
324
assert (numNumericValuesInPathElement (kind) == 2 &&
324
325
" Path element kind does not require 2 values" );
326
+ assert (value0 == getValue (0 ) && " value0 truncated" );
327
+ assert (value1 == getValue (1 ) && " value1 truncated" );
325
328
}
326
329
327
330
PathElement (GenericSignature *sig)
You can’t perform that action at this time.
0 commit comments