changeset 46:ced88226fdc5

fix -emit-llvm bug
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Wed, 01 Jan 2014 22:30:48 +0900
parents 9ebfb52ddd9b
children 5b813d18f000
files lib/IR/AsmWriter.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/IR/AsmWriter.cpp	Wed Jan 01 22:12:11 2014 +0900
+++ b/lib/IR/AsmWriter.cpp	Wed Jan 01 22:30:48 2014 +0900
@@ -194,7 +194,7 @@
   switch (Ty->getTypeID()) {
   case Type::VoidTyID:      OS << "void"; return;
 #ifndef noCbC
-  case Type::__CodeTyID:      OS << "void"; break;
+  case Type::__CodeTyID:      OS << "void"; return;
 #endif
   case Type::HalfTyID:      OS << "half"; return;
   case Type::FloatTyID:     OS << "float"; return;