Skip to content

test/lib/llvm.exp uses wrong substitution order #2492

@llvmbot

Description

@llvmbot
Bugzilla Link 2120
Resolution FIXED
Resolved on Mar 06, 2010 13:59
Version 2.2
OS Linux
Blocks llvm/llvm-bugzilla-archive#2121
Attachments Replacement order reversal
Reporter LLVM Bugzilla Contributor

Extended Description

When replacing command names from site.exp, the code first replaces %compile_c, then %compile_cxx, but it will never find %compile_cxx since its prefix %compile_c was already replaced.

Fix: revert the replacement order.

(Note on severity: inconsequential right now since the %compile_* macros aren't used in test/, but the bug fix I'm about to report next will depend on this.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions