summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-26 23:05:37 +0000
committerChris Lattner <sabre@nondot.org>2003-07-26 23:05:37 +0000
commitba21b33499bf4536a5a014487157247a283f4346 (patch)
tree752c41374db3c91355cd739bac31becd021baeb0 /llvm/lib/Target
parent99dbdf7391566beb803bbf63cac3b391c63201e7 (diff)
downloadbcm5719-llvm-ba21b33499bf4536a5a014487157247a283f4346.tar.gz
bcm5719-llvm-ba21b33499bf4536a5a014487157247a283f4346.zip
If the pass changes _anything_ it must return true
llvm-svn: 7344
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index 1562c8483d8..df911f6ba3a 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/lib/Target/X86/InstSelectSimple.cpp
@@ -85,7 +85,8 @@ namespace {
RegMap.clear();
MBBMap.clear();
F = 0;
- return false; // We never modify the LLVM itself.
+ // We always build a machine code representation for the function
+ return true;
}
virtual const char *getPassName() const {
OpenPOWER on IntegriCloud