Index: src/IceGlobalContext.cpp |
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
index fbdcd1bcc4e13f24bf5eaeaa4490f0d5754ed02a..7c6daafdfad6d5d7569f9af5fbd24fa5f626bc3c 100644 |
--- a/src/IceGlobalContext.cpp |
+++ b/src/IceGlobalContext.cpp |
@@ -896,9 +896,10 @@ JumpTableDataList GlobalContext::getJumpTables() { |
} |
JumpTableData &GlobalContext::addJumpTable(IceString FuncName, SizeT Id, |
- SizeT NumTargets) { |
+ const JumpTableData::TargetList |
+ &TargetList) { |
auto JumpTableList = getJumpTableList(); |
- JumpTableList->emplace_back(FuncName, Id, NumTargets); |
+ JumpTableList->emplace_back(FuncName, Id, TargetList); |
return JumpTableList->back(); |
} |