summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetCacheInfo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetCacheInfo.h b/include/llvm/Target/TargetCacheInfo.h
index 6514c8b6da..3969e8e427 100644
--- a/include/llvm/Target/TargetCacheInfo.h
+++ b/include/llvm/Target/TargetCacheInfo.h
@@ -1,4 +1,4 @@
-//===-- llvm/Target/MachineCacheInfo.h ---------------------------*- C++ -*-==//
+//===-- llvm/Target/MachineCacheInfo.h --------------------------*- C++ -*-===//
//
// Describes properties of the target cache architecture.
//
@@ -19,7 +19,9 @@ protected:
std::vector<unsigned short> cacheAssoc;
public:
- MachineCacheInfo(const TargetMachine& tgt);
+ MachineCacheInfo(const TargetMachine& tgt) : target(tgt) {
+ Initialize();
+ }
// Default parameters are:
// NumLevels = 2