aboutsummaryrefslogtreecommitdiff
path: root/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-11-09 01:45:13 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-11-09 01:45:13 +0000
commit129c9fcdb8e103a5f9c71d5d1d73277600ef80a6 (patch)
treeaf4ec4646ef8160b74557ee0c5a8177a429ac19b /lib/Object/IRObjectFile.cpp
parent9e4483688bd446d278b7bb3b807c0c4891956a53 (diff)
Revert "[ThinLTO] Prevent exporting of locals used/defined in module level asm"
This reverts commit r286297. Introduces a dependency from libAnalysis to libObject, which I missed during the review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/IRObjectFile.cpp')
-rw-r--r--lib/Object/IRObjectFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Object/IRObjectFile.cpp b/lib/Object/IRObjectFile.cpp
index d9474b94b30..8769f8fe54a 100644
--- a/lib/Object/IRObjectFile.cpp
+++ b/lib/Object/IRObjectFile.cpp
@@ -54,7 +54,8 @@ void IRObjectFile::CollectAsmUndefinedRefs(
std::string Err;
const Target *T = TargetRegistry::lookupTarget(TT.str(), Err);
- assert(T && T->hasMCAsmParser());
+ if (!T)
+ return;
std::unique_ptr<MCRegisterInfo> MRI(T->createMCRegInfo(TT.str()));
if (!MRI)