aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/JSBackend/JSBackend.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-02 15:54:25 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-02 15:54:25 -0800
commit77802cb8bccac46907131e21f77cfdcfc5c02faf (patch)
tree2c3d63028fc530195e9d06fa8c97f8c7f51d4c1a /lib/Target/JSBackend/JSBackend.cpp
parent945ba2dd6f61fd3b6990ce175b927fc201137044 (diff)
ignore fences
Diffstat (limited to 'lib/Target/JSBackend/JSBackend.cpp')
-rw-r--r--lib/Target/JSBackend/JSBackend.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp
index 75e4a1a5e7..11abd21f3d 100644
--- a/lib/Target/JSBackend/JSBackend.cpp
+++ b/lib/Target/JSBackend/JSBackend.cpp
@@ -1226,10 +1226,6 @@ void JSWriter::generateInstruction(const Instruction *I, raw_string_ostream& Cod
}
break;
}
- case Instruction::GetElementPtr: {
- assert(false && "Unhandled instruction");
- break;
- }
case Instruction::PHI: {
// handled separately - we push them back into the relooper branchings
break;
@@ -1338,6 +1334,7 @@ void JSWriter::generateInstruction(const Instruction *I, raw_string_ostream& Cod
Code << ";";
break;
}
+ case Instruction::Fence: break; // no threads, so nothing to do here
}
// append debug info
if (MDNode *N = I->getMetadata("dbg")) {