When LCSSAID and LoopSimplifyID are declared extern inside a function body,
some linkers will fail to resolve the actual symbnols defined in the llvm
namespace. By removing the function local extern declarations and relying
on the header definitions in Scalar.h, the symbols can be properly reolved.
This is specifically an issue when building with the Intel compiler.
Details
Details
- Reviewers
majnemer
Diff Detail
Diff Detail
- Build Status
Buildable 13 Build 13: arc lint + arc unit
Event Timeline
Comment Actions
Fix unresolved linker symbols from un-namespaced extern definitions
When LCSSAID and LoopSimplifyID are declared extern inside a function body,
some linkers will fail to resolve the actual symbols defined in the llvm
namespace. By removing the function local extern declarations and moving
them to outside the function body, the symbols can be properly resolved.
This is specifically an issue when building with the Intel compiler.
lib/Transforms/Utils/LoopUtils.cpp | ||
---|---|---|
934–938 | Please clang-format this. |
Please clang-format this.