summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/CodeGen/JumpInstrTables.cpp4
-rw-r--r--llvm/test/Verifier/jumptable.ll3
2 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/JumpInstrTables.cpp b/llvm/lib/CodeGen/JumpInstrTables.cpp
index 61ef722dce5..750f71f6022 100644
--- a/llvm/lib/CodeGen/JumpInstrTables.cpp
+++ b/llvm/lib/CodeGen/JumpInstrTables.cpp
@@ -251,10 +251,6 @@ FunctionType *JumpInstrTables::transformType(FunctionType *FunTy) {
}
bool JumpInstrTables::runOnModule(Module &M) {
- // Make sure the module is well-formed, especially with respect to jumptable.
- if (verifyModule(M))
- return false;
-
JITI = &getAnalysis<JumpInstrTableInfo>();
// Get the set of jumptable-annotated functions.
diff --git a/llvm/test/Verifier/jumptable.ll b/llvm/test/Verifier/jumptable.ll
index 5f4cd3fe4f4..81984eeb187 100644
--- a/llvm/test/Verifier/jumptable.ll
+++ b/llvm/test/Verifier/jumptable.ll
@@ -1,4 +1,4 @@
-; RUN: not llc <%s 2>&1 | FileCheck %s
+; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s
define i32 @f() jumptable {
ret i32 0
@@ -6,4 +6,3 @@ define i32 @f() jumptable {
; CHECK: Attribute 'jumptable' requires 'unnamed_addr'
; CHECK: i32 ()* @f
-; CHECK: LLVM ERROR: Broken function found, compilation aborted!
OpenPOWER on IntegriCloud