mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Minor cleanups, plug a minor memory leak
llvm-svn: 10596
This commit is contained in:
parent
ca57dd1089
commit
defd9ccd73
@ -67,8 +67,7 @@ static inline void ThrowException(const std::string &message,
|
|||||||
// discriminated union.
|
// discriminated union.
|
||||||
//
|
//
|
||||||
// Note that I can't implement this class in a straight forward manner with
|
// Note that I can't implement this class in a straight forward manner with
|
||||||
// constructors and stuff because it goes in a union, and GCC doesn't like
|
// constructors and stuff because it goes in a union.
|
||||||
// putting classes with ctor's in unions. :(
|
|
||||||
//
|
//
|
||||||
struct ValID {
|
struct ValID {
|
||||||
enum {
|
enum {
|
||||||
|
@ -1122,10 +1122,8 @@ ConstVal: Types '[' ConstVector ']' { // Nonempty unsized arr
|
|||||||
|
|
||||||
if (I != CurModule.GlobalRefs.end()) {
|
if (I != CurModule.GlobalRefs.end()) {
|
||||||
V = I->second; // Placeholder already exists, use it...
|
V = I->second; // Placeholder already exists, use it...
|
||||||
|
$2.destroy();
|
||||||
} else {
|
} else {
|
||||||
// TODO: Include line number info by creating a subclass of
|
|
||||||
// TODO: GlobalVariable here that includes the said information!
|
|
||||||
|
|
||||||
// Create a placeholder for the global variable reference...
|
// Create a placeholder for the global variable reference...
|
||||||
GlobalVariable *GV = new GlobalVariable(PT->getElementType(),
|
GlobalVariable *GV = new GlobalVariable(PT->getElementType(),
|
||||||
false,
|
false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user