mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
Module's do not subclass from Value, so this code caused a segfault.
llvm-svn: 3376
This commit is contained in:
parent
143e810ca9
commit
9f776d426f
@ -12,8 +12,7 @@
|
||||
#define LLVM_ASSEMBLY_PRINTMODULEPASS_H
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Value.h"
|
||||
#include <iostream>
|
||||
#include "llvm/Module.h"
|
||||
|
||||
class PrintModulePass : public Pass {
|
||||
std::ostream *Out; // ostream to print on
|
||||
@ -29,7 +28,7 @@ public:
|
||||
}
|
||||
|
||||
bool run(Module &M) {
|
||||
(*Out) << (Value&)M;
|
||||
(*Out) << M;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user