projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assert that we don't RAUW a Constant with a ConstantExpr that contains it.
[oota-llvm.git]
/
lib
/
IR
/
ConstantsContext.h
diff --git
a/lib/IR/ConstantsContext.h
b/lib/IR/ConstantsContext.h
index 59b9d4d3c5ed0dd0050a127ee0480b1d0fdc88df..f06509fb73a504f8cc0292d4a1047c9a7c527717 100644
(file)
--- a/
lib/IR/ConstantsContext.h
+++ b/
lib/IR/ConstantsContext.h
@@
-24,6
+24,9
@@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include <map>
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include <map>
+#include <tuple>
+
+#define DEBUG_TYPE "ir"
namespace llvm {
template<class ValType>
namespace llvm {
template<class ValType>
@@
-584,7
+587,7
@@
public:
/// necessary.
ConstantClass *getOrCreate(TypeClass *Ty, ValRefType V) {
MapKey Lookup(Ty, V);
/// necessary.
ConstantClass *getOrCreate(TypeClass *Ty, ValRefType V) {
MapKey Lookup(Ty, V);
- ConstantClass* Result =
0
;
+ ConstantClass* Result =
nullptr
;
typename MapTy::iterator I = Map.find(Lookup);
// Is it in the map?
typename MapTy::iterator I = Map.find(Lookup);
// Is it in the map?
@@
-720,7
+723,7
@@
public:
/// necessary.
ConstantClass *getOrCreate(TypeClass *Ty, Operands V) {
LookupKey Lookup(Ty, V);
/// necessary.
ConstantClass *getOrCreate(TypeClass *Ty, Operands V) {
LookupKey Lookup(Ty, V);
- ConstantClass* Result =
0
;
+ ConstantClass* Result =
nullptr
;
typename MapTy::iterator I = Map.find_as(Lookup);
// Is it in the map?
typename MapTy::iterator I = Map.find_as(Lookup);
// Is it in the map?