diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-23 20:45:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-23 20:45:31 +0000 |
commit | bbc2bc179024ea5eaede3dd9285abb51241238fa (patch) | |
tree | b089a357ea225d095c3f8f302040aab8fecadc66 /llvm/lib/CWriter/Writer.cpp | |
parent | a92dce471ba2dcd9cd4d8744d35fe81f5be8d7b6 (diff) | |
download | bcm5719-llvm-bbc2bc179024ea5eaede3dd9285abb51241238fa.tar.gz bcm5719-llvm-bbc2bc179024ea5eaede3dd9285abb51241238fa.zip |
Fix program: SingleSource/UnitTests/2003-07-09-SignedArgs with the CBE
llvm-svn: 7276
Diffstat (limited to 'llvm/lib/CWriter/Writer.cpp')
-rw-r--r-- | llvm/lib/CWriter/Writer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CWriter/Writer.cpp b/llvm/lib/CWriter/Writer.cpp index c15c23e3695..285b3a2a4d7 100644 --- a/llvm/lib/CWriter/Writer.cpp +++ b/llvm/lib/CWriter/Writer.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. |