aboutsummaryrefslogtreecommitdiff
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-14 03:39:46 +0000
committerChris Lattner <sabre@nondot.org>2004-01-14 03:39:46 +0000
commit0cccb18c98ac83e0166eebf9c4192c6998aabf39 (patch)
treedd31d0873e87df31e9516e56b0ab7a7c360c0397 /tools/gccas/gccas.cpp
parentfa76183e8e28985dfd17b1d6291c939dab4cbe1d (diff)
Make sure to verify the result before writing out the bytecode file. Not doing
so can cause obscure errors downstream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r--tools/gccas/gccas.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 356bc8216a..40053303db 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -165,6 +165,9 @@ int main(int argc, char **argv) {
//
AddConfiguredTransformationPasses(Passes);
+ // Make sure everything is still good.
+ Passes.add(createVerifierPass());
+
// Write bytecode to file...
Passes.add(new WriteBytecodePass(Out));