commit | 35b4707edb32008b1a7976dcbf3920b1160fc1c6 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Thu Aug 13 21:58:54 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Thu Aug 13 21:58:54 2009 +0000 |
tree | 2cdabe223bfce83bd12e10dd557147a2f68c9bf8 | |
parent | dfa78d19236fe2c33733c916f45d25ba46e0773f [diff] [blame] |
Push LLVMContexts through the IntegerType APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/lib/Transforms/Instrumentation/EdgeProfiling.cpp index 283f863..2220bbf 100644 --- a/lib/Transforms/Instrumentation/EdgeProfiling.cpp +++ b/lib/Transforms/Instrumentation/EdgeProfiling.cpp
@@ -68,7 +68,7 @@ } } - const Type *ATy = ArrayType::get(Type::Int32Ty, NumEdges); + const Type *ATy = ArrayType::get(Type::getInt32Ty(M.getContext()), NumEdges); GlobalVariable *Counters = new GlobalVariable(M, ATy, false, GlobalValue::InternalLinkage, Constant::getNullValue(ATy), "EdgeProfCounters");