LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 24302 - Module functions not available for the first call after module import
Summary: Module functions not available for the first call after module import
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: trunk
Hardware: Macintosh MacOS X
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-29 12:28 PDT by Ying Chen
Modified: 2016-05-16 16:08 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ying Chen 2015-07-29 12:28:24 PDT
After import a module from lldb, the functions in this module aren't available in the first call, subsequent calls to the same function are ok.

It could be reproduced by these steps, 

Launch TOT lldb on MacOSX,
(lldb) expr @import Darwin
(lldb) expr MIN(5, 8)
error: use of undeclared identifier 'MIN'
error: 1 errors parsing expression
(lldb) expr MIN(5, 8)
(int) $0 = 5
(lldb) expr MIN(5, 8)
(int) $1 = 5

This started to happen after 
http://llvm.org/viewvc/llvm-project?view=revision&revision=242868
Comment 1 Sean Callanan 2016-05-16 16:08:31 PDT
This should be resolved by clang r269554.