aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-23 20:45:31 +0000
committerChris Lattner <sabre@nondot.org>2003-07-23 20:45:31 +0000
commitd4e8d31e4003aa704cf53e65ee3195c941897181 (patch)
treef5e01452559e59ed7962dfde6619df32448c4bd3 /lib/Target/CBackend/CBackend.cpp
parentde420aee32ea799eada24afb59857040172c75d1 (diff)
Fix program: SingleSource/UnitTests/2003-07-09-SignedArgs with the CBE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r--lib/Target/CBackend/CBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index c15c23e369..285b3a2a4d 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -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.