swift
620f8743 - Fix int literals which can clash with line numbers

Commit
7 years ago
Fix int literals which can clash with line numbers test/SILOptimizer/pointer_conversion.swift’s arrayLiteralPromotion() subtest uses integer literals for 41, 42, 43, and 44. If swift-evolve shuffles a particular _internalInvariant() call in stdlib/public/core/BridgeStorage.swift to lines 41-44, the compiler will generate code which reuses the integer_literal instruction for the line number later in the test, causing this test to fail. This happens about once per 45 runs of swift-evolve. This change negates the integer literals so they will never match a line number.
Author
Parents
Loading