cfe change for https://reviews.llvm.org/D29203
Details
Diff Detail
- Build Status
Buildable 3348 Build 3348: arc lint + arc unit
Event Timeline
lib/CodeGen/CodeGenModule.cpp | ||
---|---|---|
452 | Why should we warn on mismatch? |
lib/CodeGen/CodeGenModule.cpp | ||
---|---|---|
452 | In theory, we expect this to be the same across all modules. Otherwise when we use this binary for profiling, we may get inaccurate profiles. |
lib/CodeGen/CodeGenModule.cpp | ||
---|---|---|
452 | Oh I thought about the "unset" case but we wouldn't warn in this case. Indeed we never even should have this flag with a zero value. |
lib/CodeGen/CodeGenModule.cpp | ||
---|---|---|
452 | Unless you really intend to get a warning on mismatch, in which case you should always emit the flag, but with a zero value when not enabled. |
Oops, forgot to write stuff so the approval appears on-list.
Anyway - looks good/approved.
Why should we warn on mismatch?