Fix program: SingleSource/UnitTests/2003-07-09-SignedArgs with the CBE
authorChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2003 20:45:31 +0000 (20:45 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2003 20:45:31 +0000 (20:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7276 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index c15c23e3695837bd0895923301726f27fc622024..285b3a2a4d7461690dae3845ad032b759af0a4bc 100644 (file)
@@ -91,7 +91,8 @@ namespace {
       // emit it inline where it would go.
       if (I.getType() == Type::VoidTy || I.use_size() != 1 ||
           isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I) || 
-          isa<LoadInst>(I)) // Don't inline a load across a store!
+          isa<LoadInst>(I) || isa<VarArgInst>(I))
+        // Don't inline a load across a store or other bad things!
         return false;
 
       // Only inline instruction it it's use is in the same BB as the inst.
index c15c23e3695837bd0895923301726f27fc622024..285b3a2a4d7461690dae3845ad032b759af0a4bc 100644 (file)
@@ -91,7 +91,8 @@ namespace {
       // emit it inline where it would go.
       if (I.getType() == Type::VoidTy || I.use_size() != 1 ||
           isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I) || 
-          isa<LoadInst>(I)) // Don't inline a load across a store!
+          isa<LoadInst>(I) || isa<VarArgInst>(I))
+        // Don't inline a load across a store or other bad things!
         return false;
 
       // Only inline instruction it it's use is in the same BB as the inst.