[llvm-commits] [126686] two minor fixes

clattner at apple.com clattner at apple.com
Sat Apr 28 21:26:57 PDT 2007


Revision: 126686
Author:   clattner
Date:     2007-04-28 21:26:55 -0700 (Sat, 28 Apr 2007)

Log Message:
-----------
two minor fixes

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-backend.cpp

Modified: apple-local/branches/llvm/gcc/llvm-backend.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-backend.cpp	2007-04-29 04:24:20 UTC (rev 126685)
+++ apple-local/branches/llvm/gcc/llvm-backend.cpp	2007-04-29 04:26:55 UTC (rev 126686)
@@ -595,8 +595,11 @@
 
   if (V->getType() == GA->getType())
     V->replaceAllUsesWith(GA);
-  else if (!V->use_empty())
-    error ("%J% Alias %qD used with invalid type!", decl, decl);
+  else if (!V->use_empty()) {
+    error ("%J Alias %qD used with invalid type!", decl, decl);
+    timevar_pop(TV_LLVM_GLOBALS);
+    return -1;
+  }
     
   changeLLVMValue(V, GA);
   GA->takeName(V);





More information about the llvm-commits mailing list