mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ClangImporter] Don't pass API notes options when compiling bitcode. (#10422)
Avoids a bogus "argument unused" warning, since bitcode compilation doesn't bother to set up much of a Clang AST context. (-embed-bitcode compiles in two steps: source -> bitcode, then bitcode -> object file. This is about the second step.) Patch by Bob Wilson, who's currently on vacation but wanted this to get in sooner rather than later. rdar://problem/31372950
This commit is contained in:
@@ -23,6 +23,7 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
; CHECK-IMPORTER: clang
|
||||
; CHECK-IMPORTER: -fembed-bitcode
|
||||
; CHECK-IMPORTER: -target
|
||||
; CHECK-IMPORTER-NOT: argument unused
|
||||
|
||||
define i32 @f0() nounwind ssp {
|
||||
ret i32 0
|
||||
|
||||
Reference in New Issue
Block a user